[Thread Prev] [Thread Next]
I actually did that for a project one time. Here is the code
to start
show
setpenuptext "pu
forever [setpos mousepos]
end
to blue
setc "blue
end
to green
setc "green
end
And any other colors that work (you have to test it.)
Anyway, you should put a button for each color on the page, a button
for clean, and a button for start and stop.
You must have a textbox called penuptext.
In a turtle, make mini size. then put a code in backpack
to startit
if penuptext = "pu [pd setpenuptext "pd stop]
if penuptext = "pd [setpenuptext "pu pu stop]
end
Put startit in the onclick part of the rules in backpack.
To start, click on start button. Move mouse around. Click when you
want to draw. You will draw until you click again. When you are not
drawing, you can change your color by clicking on a color button.
Hope this helps
Henry
On Apr 10, 2008, at 4:25 AM, Gail Garthwait wrote:
In my current Introduction to HyperMedia class, I have a math
teacher who is doing wonderful things with MicroWorlds. She's
posted a question to our discussion forum that I can't seem to
answer. Is there a way to do this? Thanks for even
considering it?
Gail
University of Maine
abigail@xxxxxxxxxxxxxx
==> Wouldn't it be COOL if a user could drag a turtle and the turtle
draws (pendown) at the same time so the user can draw WITH the
turtle. I know that's not the point of LOGO/Mindstorms, but it
would sure help my final project!
Melanie
Previous by thread:
Drag and Draw
Next by thread:
2d array maps?
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.
|