Author |
Message |
Drakonius
|
Posted: 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
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
tum_twish
|
Posted: Mon May 05, 2003 10:38 am Post subject: (No subject) |
|
|
x1 should be your starting point-the one you clicked-->no array
it should work then |
|
|
|
|
|
Drakonius
|
Posted: Mon May 05, 2003 10:48 am Post subject: (No 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 |
|
|
|
|
|
tum_twish
|
Posted: Mon May 05, 2003 10:51 am Post subject: (No 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 |
|
|
|
|
|
BoyGenius
|
|
|
|
|
Leafs Fan
|
Posted: Mon May 05, 2003 2:11 pm Post subject: (No subject) |
|
|
im pretty sure thats not that same chaos game that Drakonius is talking about |
|
|
|
|
|
Office of the Registar
|
Posted: Mon May 05, 2003 3:11 pm Post subject: (No subject) |
|
|
ya, no array needed |
|
|
|
|
|
|