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

Username:   Password: 
 RegisterRegister   
 Draw.Fill
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
upthescale




PostPosted: Fri Jun 16, 2006 3:59 pm   Post subject: Draw.Fill

Ok, would any one mind Draw.Filling this triangle?

code:

Draw.ThickLine (60, 98, 120, 180, 5, 8)
Draw.ThickLine (120, 180, 200, 100, 5, 8)
Draw.ThickLine (60, 98, 202, 98, 5, 8)



I know it is Draw.Fill, the thirdn umberi nthe btracets is the fill, adn the 4 is the outline, but i dont no wut 2 numbers to put in the beginning of the bracets. thank you
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Fri Jun 16, 2006 4:03 pm   Post subject: (No subject)

did u look in the Turing help file? it states quite clearly what the first two numbers are.... read it first before you ask for something as simple as this, all it is is the (x,y) coordinates of the point that you want to start Draw.Fill'ing from, research before you ask questions
upthescale




PostPosted: Fri Jun 16, 2006 9:48 pm   Post subject: (No subject)

trust me i have reasaerhced, i read it over 4 or 5 times,

itried this :

Draw.Fill (60, 98, 12, 7)

but it didnt werk
Bored




PostPosted: Fri Jun 16, 2006 10:18 pm   Post subject: (No subject)

first off your lines are of colour 8 and so your fill colour should be 8 not 7, second your drawing it on the line and not in the triangle so it will read an edge right away. So if you move the starting position and change the border colour you get
code:
Draw.Fill (80, 110, 12, 8)
upthescale




PostPosted: Fri Jun 16, 2006 11:13 pm   Post subject: (No subject)

Thank you, but how did u no wut nubmersto input?
Bored




PostPosted: Fri Jun 16, 2006 11:18 pm   Post subject: (No subject)

the 8 was because that was the colour of the lines, the x and y were simply in the middle of the bottom line and up a bit thus landing inside.
Dan




PostPosted: Sat Jun 17, 2006 1:01 am   Post subject: (No subject)

I think the problem is you do not get what Draw.Fill is upthescale, it is almost excuatly like the paint bucket in paint and works just like it. Where x and y where whould be where you clikced the paint bucket in ms paint.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Bored




PostPosted: Sat Jun 17, 2006 5:02 am   Post subject: (No subject)

Yes but with one huge difference. Draw.Fill will continue to fill over even if it reaches a second colour until it reaches its border colour, which in your case is 8.
Sponsor
Sponsor
Sponsor
sponsor
DIIST




PostPosted: Sat Jun 17, 2006 7:42 am   Post subject: (No subject)

Instead of drawing line by line and drawfilling, why not drawfill polygon? Confused
Reality Check




PostPosted: Sat Jun 17, 2006 10:30 am   Post subject: (No subject)

Here you go:

code:

Draw.ThickLine (60, 98, 120, 180, 5, 8)
Draw.ThickLine (120, 180, 200, 100, 5, 8)
Draw.ThickLine (60, 98, 202, 98, 5, 8)
drawfill (80, 110, blue, 8)


I filled it with blue, you can just change the fill colour if it doesn't suit you.
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  [ 10 Posts ]
Jump to:   


Style:  
Search: