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: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Drag and Draw
From: Henry Wilson <henryhwilson@xxxxxxxxx>
Date: Thu, 10 Apr 2008 07:20:40 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;

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.


    © copyright 2001 - 2008