[MWForum]MIA, Ask an Expert Question
Jean Stringer
mwforum@lists.mathcats.com
Tue, 18 May 2004 06:20:21 -0700 (PDT)
--0-1272115844-1084886421=:18397
Content-Type: text/plain; charset=us-ascii
Reply, Thanks, can't wait to try this. Amazing how this has grown and given me new ideas to work with.
The original project was to show kids how to make parts of a whole and have them move together. So they would create a space ship in two parts then two different windows.
The windows would both change DIFFERENT colors and Different times. But all four turtles would fly around the area together!
The other part I was working on was for the kids to create a shape ( a dog / robot etc) from shapes. They would draw shapes in the shapes page then hatch turtles to hold their shapes. Then program where everything went to build a creature or creation. But the fun would be their shapes would flash color. I think the traingle factory may work with this and we will just have to work a bit harder to accomplish what I want. HOWEVER I could never have moved forward without the help from this forum!
Thanks to everyone....and all your online web pages also!
Jean
Wendy Petti <wpetti@mathcats.com> wrote:
Here's another way to solve your problem so have windows of many different
colors, using only one spaceship shape and one turtle shape.
You can program one turtle so that it always "follows" another turtle.
Suppose you have a turtle-shaped turtle that you've named WINDOWS and
another turtle named SPACESHIP. Spaceship is in the foreground (hatched
later than Windows). You can adjust the size of the Windows turtle so that
the belly of the turtle extends far enough to color the windows of the
spacesuip. Depending on where the transparent squares are on your
spaceship, and the size and shape of your spaceship, you might be able to
use this instruction for your Windows turtle, set to "many times":
Windows, setpos list (ask "Spaceship [xcor]) + 0 (ask "Spaceship [ycor]) +
10
I've put in numbers (including 0) to demonstrate where and how you could
tweak the positioning of the Windows turtle; of course you would adjust the
numbers as needed or omit them.
You could give the spaceship this instruction, set to many times:
FD 0.1
(or whatever speed works for you).
Then you could write this procedure:
to fly
spaceship, clickon
Windows, clickon
forever [Windows, setc random 140 wait 5]
end
I tried it and it works! In this way, you can have windows flashing
different colors at random.
Wendy Petti
OWL's MicroWorlds in Action
http://mia.openworldlearning.org
Math Cats
http://www.mathcats.com
-----Original Message-----
From: mwforum-admin@lists.mathcats.com
[mailto:mwforum-admin@lists.mathcats.com]On Behalf Of Jeff Knope
Sent: Monday, May 17, 2004 9:09 AM
To: mwforum@lists.mathcats.com
Subject: Re: [MWForum]MIA, Ask an Expert Question
Hi Jean,
Have you done any testing to see how big a spaceship you can put in a shape?
If your spaceship is smaller than you'd like it to be, try making a bigger
one. You'll be surprised! It'll look small in the shape table, but when you
bring it to graphics area, it'll be the original size it was when you made
it.
Shapes are allowed to have many colors in the same shape. You can even make
a photograph into a shape. I'm pretty sure that's why MicroWorlds doesn't
allow the use of setc with shapes.
Good luck, Jeff
----- Original Message -----
From: Jean Stringer
To: mwforum@lists.mathcats.com
Sent: Monday, May 17, 2004 5:11 AM
Subject: Re: [MWForum]MIA, Ask an Expert Question
Thanks for taking the time to answer. I just wonder why the turtle can
change colors but no other shape can? It would be the easiest for what I
want to do.
Make a space ship with blinking windows. Since the space ship is a shape the
windows need to be small. Almost as small as the little dot in and empty
shape. On the space ship I leave blanks where the windows go then put in
square shapes there. I have used two different ones, but I wanted more
colors and setc would be easire.
Thanks again,
Jean
Jeff Knope wrote:
Jean asked,
> Is there a way to change the colors of shapes you create?
>
> I would like to create polygons and have them change colors ????????
Hi Jean,
One way is to create your images in different colors and assign each of them
to different shapes. Then use setsh (setshape) to make the change.
Another way is to use a hidden turtle to draw the polygons, then change the
turtle color with setc, and redraw them right over the old ones with the new
color.
Good luck, Jeff
----- Original Message -----
From: "Ask an Expert - Question"
To:
Sent: Sunday, May 16, 2004 7:03 AM
Subject: [MWForum]MIA, Ask an Expert Question
> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
>
> from: "Jean Stringer"
> date: Sun, 16 May 2004 7:25:47 -0600
>
> When I have the turtle shape I can make him change colors several ways.
> repeat 5 [ setc 1 wait 5 setc 2 wait 5]
>
> 0r a dolist
>
> However only the turtle shape will change colors for me.
> If I draw a shape {a square or triangle or circle} and want
> it to change colors I can't make it happen. I have tried
> empty shapes and filled shapes. Neither will change color.
> Is there a way to change the colors of shapes you create?
>
> I would like to create polygons and have them change colors ????????
>
> Thank you!
> Jean
>
>
> _______________________________________________
> MWForum mailing list
> MWForum@lists.mathcats.com
> http://lists.mathcats.com/mailman/listinfo/mwforum
> Attach ments archived at:
> http://www.mathcats.com/mwforum/attachments.html
> To unsubscribe or for administrative questions contact
> mailto:mwforum-admin@lists.mathcats.com
>
>
_______________________________________________
MWForum mailing list
MWForum@lists.mathcats.com
http://lists.mathcats.com/mailman/listinfo/mwforum
Attachments archived at:
http://www.mathcats.com/mwforum/attachments.html
To unsubscribe or for administrative questions contact
mailto:mwforum-admin@lists.mathcats.com
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
_______________________________________________
MWForum mailing list
MWForum@lists.mathcats.com
http://lists.mathcats.com/mailman/listinfo/mwforum
Attachments archived at:
http://www.mathcats.com/mwforum/attachments.html
To unsubscribe or for administrative questions contact
mailto:mwforum-admin@lists.mathcats.com
---------------------------------
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
--0-1272115844-1084886421=:18397
Content-Type: text/html; charset=us-ascii
<DIV>Reply, Thanks, can't wait to try this. Amazing how this has grown and given me new ideas to work with.</DIV>
<DIV> </DIV>
<DIV>The original project was to show kids how to make parts of a whole and have them move together. So they would create a space ship in two parts then two different windows.</DIV>
<DIV> </DIV>
<DIV>The windows would both change DIFFERENT colors and Different times. But all four turtles would fly around the area together! </DIV>
<DIV> </DIV>
<DIV>The other part I was working on was for the kids to create a shape ( a dog / robot etc) from shapes. They would draw shapes in the shapes page then hatch turtles to hold their shapes. Then program where everything went to build a creature or creation. But the fun would be their shapes would flash color. I think the traingle factory may work with this and we will just have to work a bit harder to accomplish what I want. HOWEVER I could never have moved forward without the help from this forum! </DIV>
<DIV> </DIV>
<DIV>Thanks to everyone....and all your online web pages also!</DIV>
<DIV> </DIV>
<DIV> Jean<BR><BR><B><I>Wendy Petti <wpetti@mathcats.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Here's another way to solve your problem so have windows of many different<BR>colors, using only one spaceship shape and one turtle shape.<BR><BR>You can program one turtle so that it always "follows" another turtle.<BR>Suppose you have a turtle-shaped turtle that you've named WINDOWS and<BR>another turtle named SPACESHIP. Spaceship is in the foreground (hatched<BR>later than Windows). You can adjust the size of the Windows turtle so that<BR>the belly of the turtle extends far enough to color the windows of the<BR>spacesuip. Depending on where the transparent squares are on your<BR>spaceship, and the size and shape of your spaceship, you might be able to<BR>use this instruction for your Windows turtle, set to "many times":<BR><BR>Windows, setpos list (ask "Spaceship [xcor]) + 0 (ask "Spaceship [ycor]) +<BR>10<BR><BR>I've put in numbers (including 0) to demonstrate where and how you
could<BR>tweak the positioning of the Windows turtle; of course you would adjust the<BR>numbers as needed or omit them.<BR><BR>You could give the spaceship this instruction, set to many times:<BR><BR>FD 0.1<BR><BR>(or whatever speed works for you).<BR><BR>Then you could write this procedure:<BR><BR>to fly<BR>spaceship, clickon<BR>Windows, clickon<BR>forever [Windows, setc random 140 wait 5]<BR>end<BR><BR>I tried it and it works! In this way, you can have windows flashing<BR>different colors at random.<BR><BR>Wendy Petti<BR>OWL's MicroWorlds in Action<BR>http://mia.openworldlearning.org<BR>Math Cats<BR>http://www.mathcats.com<BR><BR><BR><BR>-----Original Message-----<BR>From: mwforum-admin@lists.mathcats.com<BR>[mailto:mwforum-admin@lists.mathcats.com]On Behalf Of Jeff Knope<BR>Sent: Monday, May 17, 2004 9:09 AM<BR>To: mwforum@lists.mathcats.com<BR>Subject: Re: [MWForum]MIA, Ask an Expert Question<BR><BR><BR>Hi Jean,<BR><BR>Have you done any testing to see how big a spaceship you can
put in a shape?<BR>If your spaceship is smaller than you'd like it to be, try making a bigger<BR>one. You'll be surprised! It'll look small in the shape table, but when you<BR>bring it to graphics area, it'll be the original size it was when you made<BR>it.<BR><BR>Shapes are allowed to have many colors in the same shape. You can even make<BR>a photograph into a shape. I'm pretty sure that's why MicroWorlds doesn't<BR>allow the use of setc with shapes.<BR><BR>Good luck, Jeff<BR>----- Original Message -----<BR>From: Jean Stringer<BR>To: mwforum@lists.mathcats.com<BR>Sent: Monday, May 17, 2004 5:11 AM<BR>Subject: Re: [MWForum]MIA, Ask an Expert Question<BR><BR><BR>Thanks for taking the time to answer. I just wonder why the turtle can<BR>change colors but no other shape can? It would be the easiest for what I<BR>want to do.<BR><BR>Make a space ship with blinking windows. Since the space ship is a shape the<BR>windows need to be small. Almost as small as the little dot in and
empty<BR>shape. On the space ship I leave blanks where the windows go then put in<BR>square shapes there. I have used two different ones, but I wanted more<BR>colors and setc would be easire.<BR><BR>Thanks again,<BR><BR>Jean<BR><BR><BR><BR>Jeff Knope <JKNOPE@ASIS.COM>wrote:<BR>Jean asked,<BR><BR>> Is there a way to change the colors of shapes you create?<BR>><BR>> I would like to create polygons and have them change colors ????????<BR><BR>Hi Jean,<BR><BR>One way is to create your images in different colors and assign each of them<BR>to different shapes. Then use setsh (setshape) to make the change.<BR><BR>Another way is to use a hidden turtle to draw the polygons, then change the<BR>turtle color with setc, and redraw them right over the old ones with the new<BR>color.<BR><BR>Good luck, Jeff<BR><BR>----- Original Message -----<BR>From: "Ask an Expert - Question"<BR>To:<BR>Sent: Sunday, May 16, 2004 7:03 AM<BR>Subject: [MWForum]MIA, Ask an Expert Question<BR><BR><BR>> This
is an automatic message sent from the web form at:<BR>> http://mia.openworldlearning.org/howdoi.htm<BR>><BR>> from: "Jean Stringer"<BR>> date: Sun, 16 May 2004 7:25:47 -0600<BR>><BR>> When I have the turtle shape I can make him change colors several ways.<BR>> repeat 5 [ setc 1 wait 5 setc 2 wait 5]<BR>><BR>> 0r a dolist<BR>><BR>> However only the turtle shape will change colors for me.<BR>> If I draw a shape {a square or triangle or circle} and want<BR>> it to change colors I can't make it happen. I have tried<BR>> empty shapes and filled shapes. Neither will change color.<BR>> Is there a way to change the colors of shapes you create?<BR>><BR>> I would like to create polygons and have them change colors ????????<BR>><BR>> Thank you!<BR>> Jean<BR>><BR>><BR>> _______________________________________________<BR>> MWForum mailing list<BR>> MWForum@lists.mathcats.com<BR>>
http://lists.mathcats.com/mailman/listinfo/mwforum<BR>> Attach ments archived at:<BR>> http://www.mathcats.com/mwforum/attachments.html<BR>> To unsubscribe or for administrative questions contact<BR>> mailto:mwforum-admin@lists.mathcats.com<BR>><BR>><BR><BR><BR>_______________________________________________<BR>MWForum mailing list<BR>MWForum@lists.mathcats.com<BR>http://lists.mathcats.com/mailman/listinfo/mwforum<BR>Attachments archived at:<BR>http://www.mathcats.com/mwforum/attachments.html<BR>To unsubscribe or for administrative questions contact<BR>mailto:mwforum-admin@lists.mathcats.com<BR><BR><BR><BR><BR>Do you Yahoo!?<BR>SBC Yahoo! - Internet access at a great low price.<BR><BR><BR>_______________________________________________<BR>MWForum mailing list<BR>MWForum@lists.mathcats.com<BR>http://lists.mathcats.com/mailman/listinfo/mwforum<BR>Attachments archived at:<BR>http://www.mathcats.com/mwforum/attachments.html<BR>To unsubscribe or for administrative
questions contact <BR>mailto:mwforum-admin@lists.mathcats.com</BLOCKQUOTE><p>
<hr size=1><font face=arial size=-1>Do you Yahoo!?<br><a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=24311/*http://promo.yahoo.com/sbc/">SBC Yahoo!</a> - Internet access at a great low price.
--0-1272115844-1084886421=:18397--