View Single Post
  #105 (permalink)  
Old 12-10-2007, 07:18 PM
colin9876 colin9876 is offline
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

ok, well Im just reorganising the BSinterface because it needs to be done more logically to go fast. It was drawing pens on the foreground all the time, e.g. in black when a colour wasnt selected

I can implement everything Neil wants from Basic if I have two more things passed to the the library,

Firstly a ELEMENTS() array defining the color, spread
attributes of particles 0 to MAXELMENTS

A rules table rules(MAXELEMENTS,MAXELEMENTS)
which has arguments saying what happens when two colored particles meet
ChangetoElement, dx, dy is all it will need

Ill map out the C# lines in anticipation of Neil working out how to do dlls
Ive got a french exam tomorrow so must go and revise now but will catch up with this later. A Bientot!

Update- what does that FromArgb( col[i]) change do?
Does C# store colours as doubles? Does .Net have a RGB function?

Last edited by colin9876 : 12-10-2007 at 07:27 PM.
Reply With Quote