Computer Science Canada

Chaos (distance)

Author:  Drakonius [ Mon May 05, 2003 10:31 am ]
Post subject:  Chaos (distance)

can someone tell how the distnace thing works
my program prints dots going to one corner of the program
code:

 for count : 1 .. whatever
            randint (a, 1, selectedPoints)
            x1 (7) := round  ( (x1 (7) - x1 (a)) * distance + x1 (7))
            y1 (7) := round  ( (y1 (7) - y1 (a)) * distance + y1 (7))
            GUI.DrawDot (drawCanvas, x1 (7), y1 (7), a * 10)
        end for

Rolling Eyes

Author:  tum_twish [ Mon May 05, 2003 10:38 am ]
Post subject: 

x1 should be your starting point-the one you clicked-->no array
it should work then

Author:  Drakonius [ Mon May 05, 2003 10:48 am ]
Post subject: 

so i need predefined points?
are the predefined points set to some rules or do i just choose a point from anywhere and make it constant Question Question Question

Author:  tum_twish [ Mon May 05, 2003 10:51 am ]
Post subject: 

corner points are predefined-3 forms triangle, 4 forms square,etc.
you can use arrays for corner points
x1 only changes in the formula after clicking on the canvas the first time

Author:  BoyGenius [ Mon May 05, 2003 12:47 pm ]
Post subject: 

check out this chaos game. might help you

http://www.compsci.ca/bbs/viewtopic.php?t=512&highlight=chaos

Author:  Leafs Fan [ Mon May 05, 2003 2:11 pm ]
Post subject: 

im pretty sure thats not that same chaos game that Drakonius is talking about

Author:  Office of the Registar [ Mon May 05, 2003 3:11 pm ]
Post subject: 

ya, no array needed


: