[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> Re: Fill option in Berkeley Logo



Evan Panagiotopoulos <evanp@technologist.com> writes:
>Is there to fill a shape with a color in BL?  In the txt file listing
>the supported commands I found pencolor but I don't understand how to
>use it.

There is a FILL command.  Pick the pen up, move the turtle to somewhere
inside the closed (i.e., already drawn) shape you want to fill, set the
pen color to whatever color you want, and say FILL.  Example:

SETPC 4 REPEAT 4 [FD 100 RT 90]          ; draw a red square
PU RT 45 FD 30                           ; move turtle inside it
SETPC 3 FILL                             ; fill with aqua

(It doesn't have to be a different color from the border.)




---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home