Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Chaos (distance)
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

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

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

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
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 7 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: