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

Username:   Password: 
 RegisterRegister   
 drawinfinity
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
octopi




PostPosted: Wed Jun 09, 2004 8:29 pm   Post subject: drawinfinity

hey, this is the infinity symbol



code:
procedure drawinfinity (x:int,y:int,size:int,col:int)
  var xn,yn:real
  for t:1..10000
    xn:=3*size* cos (t)+x
    yn:=size* sin (2*t)+y
    drawdot(round(xn),round(yn),col)
  end for
end drawinfinity
var thesize:int:=10
drawinfinity(100,100,thesize,45) 
drawdot(100,100,4)



as shown intersection point is at x,y
Sponsor
Sponsor
Sponsor
sponsor
the_short1




PostPosted: Wed Jun 09, 2004 8:35 pm   Post subject: (No subject)

ur having fun doing all these draw procs arn't u??? 4 of them!!

good stuff!!
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  [ 2 Posts ]
Jump to:   


Style:  
Search: