Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
roses are actually red this time..
Author Message
SilverSprite

Posted: Tue Jun 01, 2004 3:55 pm   Post subject: roses are actually red this time..

well.. here is my roses program.. now that computer is pretty much feeling a little better from those virii... source code this time.. its from a math thing i found some time ago and coded..

 code: View.Set ("nobuttonbar, graphics:max;max, offscreenonly") var oldx, oldy, x, r, t, newx, newy, cx, cy, size := 0.0 cx := maxx div 2 cy := maxy div 2 size := 100 for n : 1 .. 359     for d : 1 .. 359         locate (1, 1)         put "n: ", n, "   d: ", d         loop             t := (t + d) mod 360             r := sind (((n * t) mod 360))             newx := r * cosd (t)             newy := r * sind (t)             drawline (round (cx + size * oldx), round (cy + size * oldy), round (cx + size * newx), round (cy + size * newy), 7)             oldx := newx             oldy := newy             exit when t = 0         end loop         View.Update         cls     end for end for

Paul

Posted: Tue Jun 01, 2004 4:37 pm   Post subject: (No subject)

Hm... interesting, although I didn't see any roses... or red... but its a cool effect. Reminded me of the movie "the ring"
Is it viruses or virii?
rhomer

Posted: Tue Jun 01, 2004 4:53 pm   Post subject: (No subject)

THTA WAS THE COOLEST THING I EVER SAW!!!!
SilverSprite

Posted: Tue Jun 01, 2004 4:53 pm   Post subject: (No subject)

i didnt name it man.. that was what the pdf was called "roses are red"...
and i think both work
SilverSprite

Posted: Tue Jun 01, 2004 4:54 pm   Post subject: (No subject)

choose different numbers. you get some really cool ones
Raugrist

Posted: Tue Jun 01, 2004 6:25 pm   Post subject: (No subject)

That was pretty nice, I think next to trig, this is the only time that I don't exactly hate math. Glad to hear the virus problem is gone.
SilverSprite

Posted: Tue Jun 01, 2004 8:26 pm   Post subject: (No subject)

the virus problem isnt gone yet... just temporarily im working it through
Tony

Posted: Tue Jun 01, 2004 8:27 pm   Post subject: (No subject)

ouch man, it's been in your computer for a while now... maybe you should just format
Tony's programming blog. DWITE - a programming contest.

SilverSprite

Posted: Tue Jun 01, 2004 8:39 pm   Post subject: (No subject)

oh i did.. i reformatted once.. then they all came back.. i reformatted a second time.. and i installed norton before i connected to the internet.. my computer is for some reason very susceptible to virii, if i dl msn for example.. one seems to leak through.. i have to clean it up real quick after norton detects it its annoying..
the_short1

Posted: Sat Jun 12, 2004 5:44 pm   Post subject: (No subject)

lookz nice..... i have gotten similiar results by doing a drawpolygon and have it keep raising the number of sides... maybe u can try that out...

good job!
SilverSprite

Posted: Sat Jun 12, 2004 7:25 pm   Post subject: (No subject)

that besides the point.. and i doubt that drawpolygon would give the same thing.. go to a larger number of n and d
this_guy

Posted: Thu Jun 24, 2004 5:01 pm   Post subject: (No subject)

i dont get it at all....where's the red? and the rose?
nice seizure giving thingy though.
Kingnoz

Posted: Thu Jun 24, 2004 10:13 pm   Post subject: (No subject)

AH MY EYES...there should be a seizure warning for ppl with fast computers...other than that, the program is amazing, props to u.
the_short1

Posted: Fri Jun 25, 2004 11:17 am   Post subject: (No subject)

there .... << have it for my cool ways to clear ur screen visuals.,.,. cuz thoe are nuts..
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 14 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: