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

Username:   Password: 
 RegisterRegister   
 roses are actually red this time..
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SilverSprite




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

Sponsor
Sponsor
Sponsor
sponsor
Paul




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




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

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




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




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

choose different numbers. you get some really cool ones
Raugrist




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




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

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




PostPosted: 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 Rolling Eyes
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
SilverSprite




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




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




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




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




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




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

Posted Image, might have been reduced in size. Click Image to view fullscreen.

there Razz.... << have it for my cool ways to clear ur screen visuals.,.,. cuz thoe are nuts..
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: