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

Username:   Password: 
 RegisterRegister   
 draw a sphere
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jiesima




PostPosted: Tue Dec 09, 2003 7:07 pm   Post subject: draw a sphere

can anyone help me to draw a sphere with turing? please
please reply as soon as possible.
Sponsor
Sponsor
Sponsor
sponsor
Tendulkar




PostPosted: Tue Dec 09, 2003 9:11 pm   Post subject: Re: draw a sphere

Here is the program which i copied from this web site but then i modified it related to your question


sphere.t
 Description:

Download
 Filename:  sphere.t
 Filesize:  1.92 KB
 Downloaded:  193 Time(s)

Andy




PostPosted: Tue Dec 09, 2003 9:21 pm   Post subject: (No subject)

ever heard of loops?and if you make the colors rotate, it'll look more realistic... i think
Tony




PostPosted: Tue Dec 09, 2003 9:24 pm   Post subject: (No subject)

what you do is you use two forloops (one for horizontal and one for vertical). Draw your arcs using gradient RGB values (light on top, dark on bottom) and then another layer (light on left dark on right). When doing 2nd layer, you'd have to use coloring technique similar to Photoshop's Multiply. That should shade your sphere nicely 8)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
juniorspank




PostPosted: Wed Dec 10, 2003 4:45 pm   Post subject: (No subject)

I made sphere once... it wasn't as good as sphere as it was a drawfillbox... Mr. Green
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  [ 5 Posts ]
Jump to:   


Style:  
Search: