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

Username:   Password: 
 RegisterRegister   
 Turing Graphics: Object Order of Appearance
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AndrewYWW




PostPosted: Sun Oct 31, 2010 3:07 pm   Post subject: Turing Graphics: Object Order of Appearance

Hello, I'm currently having a bit of trouble trying to figure out exactly how to place one object in front of another in Turing. I drew two trees in Turing, but I want the one on the bottom to be in front of the one at the top.

This is the code that I have for the two trees:


%Tree 1
drawline(320,210,310,200,255)
drawline(310,200,315,200,255)
drawline(315,200,305,190,255)
drawline(305,190,310,190,255)
drawline(310,190,300,180,255)
drawline(300,180,305,180,255)
drawline(300,180,305,180,255)
drawline(305,180,295,170,255)
drawline(295,170,300,170,255)
drawline(300,170,290,160,255)

drawline(320,210,330,200,255)
drawline(330,200,325,200,255)
drawline(325,200,335,190,255)
drawline(335,190,330,190,255)
drawline(330,190,340,180,255)
drawline(340,180,335,180,255)
drawline(335,180,345,170,255)
drawline(345,170,340,170,255)
drawline(345,170,340,170,255)
drawline(340,170,350,160,255)

drawline(290,160,350,160,255)
drawbox(315,140,324,160,255)
drawfill(341,171,167,255)
drawfill(316,141,138,255)

%Tree 2
drawline(300,190,290,180,255)
drawline(290,180,295,180,255)
drawline(295,180,285,170,255)
drawline(285,170,290,170,255)
drawline(290,170,280,160,255)
drawline(280,160,285,160,255)
drawline(280,160,285,160,255)
drawline(285,160,275,150,255)
drawline(275,150,280,150,255)
drawline(280,150,270,140,255)

drawline(300,190,310,180,255)
drawline(310,180,305,180,255)
drawline(305,180,315,170,255)
drawline(315,170,310,170,255)
drawline(310,170,320,160,255)
drawline(320,160,315,160,255)
drawline(315,160,325,150,255)
drawline(325,150,320,150,255)
drawline(325,150,320,150,255)
drawline(320,150,330,140,255)

drawline(270,140,330,140,255)
drawbox(295,120,305,140,255)
drawfill(300,145,167,255)
drawfill(296,121,138,255)

Tree 1 being the one on top, and Tree 2 being the one on the bottom.

I wish to place Tree 2 in front of Tree 1 so that the black lines from Tree 1 do not appear within Tree 2. Is there such a way to achieve this?
Any and all help will be appreciated!
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Mon Nov 01, 2010 6:15 pm   Post subject: RE:Turing Graphics: Object Order of Appearance

One thing you can try is create one tree, then save the tree as a picture either using Pic.New or just screenshot the result and crop it in paint.

Using Pic.Draw you can achieve the results you desire.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: