Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Chaos (distance)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Drakonius




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
tum_twish




PostPosted: 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




PostPosted: 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 Question Question Question
tum_twish




PostPosted: 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




PostPosted: Mon May 05, 2003 12:47 pm   Post subject: (No subject)

check out this chaos game. might help you

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




PostPosted: 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




PostPosted: Mon May 05, 2003 3:11 pm   Post subject: (No subject)

ya, no array needed
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: