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

Username:   Password: 
 RegisterRegister   
 drawfill(x,y,green, ANYTHING)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
noteric




PostPosted: Thu Nov 22, 2007 8:10 am   Post subject: drawfill(x,y,green, ANYTHING)

Is there a way to make a drawfill stop when it hits any color (except white)? I have tried using (COLOR1 or COLOR2) but in that case, it stops at only color1.

I'm trying to make it like a "paint bucket" type of thing.

Thanks.
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Thu Nov 22, 2007 10:34 am   Post subject: RE:drawfill(x,y,green, ANYTHING)

Might need to switch to using whatdotcolour and drawdot.
Zampano




PostPosted: Thu Nov 22, 2007 11:00 am   Post subject: Re: drawfill(x,y,green, ANYTHING)

Interestingly, Turing allows you to have the not statement within the drawfill parameters, but since it doesn't want any colour number over 255 that doesn't work. Nor does < or >, which would solve that problem.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: