
-----------------------------------
Drakonius
Mon May 05, 2003 10:31 am

Chaos (distance)
-----------------------------------
can someone tell how the distnace thing works
my program prints dots going to one corner of the program

 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

 :roll:

-----------------------------------
tum_twish
Mon May 05, 2003 10:38 am


-----------------------------------
x1 should be your starting point-the one you clicked-->no array
it should work then

-----------------------------------
Drakonius
Mon May 05, 2003 10:48 am


-----------------------------------
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 :?:  :?:  :?:

-----------------------------------
tum_twish
Mon May 05, 2003 10:51 am


-----------------------------------
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

-----------------------------------
BoyGenius
Mon May 05, 2003 12:47 pm


-----------------------------------
check out this chaos game. might help you

http://www.compsci.ca/bbs/viewtopic.php?t=512&highlight=chaos

-----------------------------------
Leafs Fan
Mon May 05, 2003 2:11 pm


-----------------------------------
im pretty sure thats not that same chaos game that Drakonius is talking about

-----------------------------------
Office of the Registar
Mon May 05, 2003 3:11 pm


-----------------------------------
ya, no array needed
