Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: "MicroWorlds Forum" <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, daniel <saxplayer1997@xxxxxxxxx>
Subject: Re: MIA, Ask an Expert: turlte pen
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Tue, 21 Sep 2010 13:52:22 -0500

On Tue, 21 Sep 2010 09:58:11 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> 
wrote:

> from: daniel <saxplayer1997@xxxxxxxxx>
> date: Tue Sep 21 08:58:11 2010
> platform: PC
> version: MicroWorlds Ex
> 
> how do i change the color and pen size of my turtels pen. 

setcolor color-name-or-number

Sets the color of the turtle's pen. If the turtle has its original shape, it 
changes color to show the pen color. The input can be the name of a color or a 
number. The original pen color is black, or color number 9. The input can be 
an integer, a fraction or a one place decimal.

Given that there is a turtle on the page:

setc 45 fill
setc "orange fill 

--------------

setsize number
	

Sets the size of the turtle. The original size is 40 and the minimum and 
maximum sizes are 5 and 160, respectively. Turtle shapes look nice when they 
are multiples of 20. You can also change the size of the turtle with the 
magnifiers.

Given that there is a turtle on the page:

setsize 15
repeat 12 [setsize size + 5 wait 5] 

----------

> aslo how do i fill with the turle pen



fill
	
Fills a closed area with the turtle's pen color. If the area is not perfectly 
closed, the paint "leaks" onto the entire page. Fill works regardless of the 
turtle's pen state (up or down).

Given that there is a turtle on the page:

pd
repeat 4 [fd 50 rt 90]
rt 45 pu fd 5
setc "yellow
fill 


Daniel
OpenWorld Learning




  • Previous by thread: MIA, Ask an Expert: turlte pen
  • Next by thread: MIA, Ask an Expert: Drawing with a turtle

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008