class forums

get help from your classmates and help yourself by learning more as you help them
 
HomeHome  ­FAQFAQ  ­SearchSearch  ­RegisterRegister  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 colour code

View previous topic View next topic Go down 
AuthorMessage
07B1902



Posts: 3
Join date: 2008-03-30

PostSubject: colour code   Sun Mar 30, 2008 5:53 am

We can set screen colour and pen colour but how do we colour our object. I mean like i want a red ball, as in the inner colour is all red (It does not follow the screen's colour). What command do I need? I tried FILL as I've read that it will flood the area the turtle is with the wanted color but it doesn't recognize this command.

Also i've looked at one of the example provided by MSWLOGO that uses SETFLOODCOLOR but I don't really understand how to this command is used for.

(thanks for anyone that can help)

david's answer: read the Help on FILL carefully. it should work, but it does have some "idiosyncracies" - in particular, it will fill an area bounded by lines you have drawn, but the turtle has to be - by at least 3 units of measurement, i think - inside the lines, not on one of them.

SETFLOODCOLOR picks a colour for the FILL command. it should be called SETFILLCOLOR really! it takes 3 parameters (each in the range 0-255), for degrees of red, blue and green in that order. you can find out what numbers you want by referring to Microsoft Paint Colors...Edit colors...Define Custom Colors...

ask me in class to show you
.
Back to top Go down
View user profile
ChrisFoo



Posts: 13
Join date: 2007-12-07

PostSubject: Shortcut   Sun Apr 06, 2008 9:10 am

Hi. I would like to share some shortcut with you. The setfloodcolor can be shorten to setfc while setpencolor can be shorten to setpc.
Back to top Go down
View user profile
pl
Guest



PostSubject: Re: colour code   Sun Apr 06, 2008 4:41 pm

oh wow thanks chris and dr brown!
Back to top Go down
07B1902



Posts: 3
Join date: 2008-03-30

PostSubject: Re: colour code   Wed Apr 09, 2008 6:17 am

thanks, thanks for the help.
Back to top Go down
View user profile
 

colour code

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
class forums :: Introduction to Computer Programming :: logo-
Post new topic   Reply to topic