[MWForum]Editing colors so that something happens in response to the mouse

Harvey Bornfield mwforum@lists.mathcats.com
Thu, 25 Sep 2003 01:26:52 -0700


--=====================_5479559==.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

Dear Graham

Try scanning in or importing a color-coded map of the United States into=20
the background of a project page. Then, using the paintcan tool, color a=20
few states different hues even hues of the same color. Program the colors=20
to open and close text boxes when the mouse is clicked on them, which you=20
do by double-clicking a color. (Programmed colors have a telltale dot in=20
the middle of them)

For an example of one use of program color backtrounds, I have a toggletext=
=20
procedure which will both reveal and conceal a textbox. It works utilizing=
=20
the get "textwhatever "visible? command

And though it would appear that you have only sixteen colors to work with,=
=20
you can greatly expand the number through the use of a what I call a "ghost=
=20
turtle" (a turtle which is always hidden, but and one pixel large.) And in=
=20
your procedure to respond to a mouseclick, the colordemon function, you ask=
=20
that turtle to "stalk" the mouse arrow, ever relocating himself exactly=20
under the click place, which you get from the reporter MOUSEPOS.

Why do all this, you ask? Because then you can ask the ghost turtle, always=
=20
at the "scene of the click" to suddenly appear, and discover the color=20
underneath himself. The COLORUNDER reporter reports numbers, rather than=20
colors, and so you then have enough differentiated colors on which to=20
reveal hundreds color numbers and of course, hundreds of text boxes, each=20
one of which is populated with the research of one student.

This makes for excellent collaborative activity, using the merge=
 command......

If you're interested, we can create, or dig up a procedure to illustrate=20
exactly how this works this.
"Spoonfed Constructivist", a new oxymoron.

best regards
Harvey


At 03:03 PM 9/25/2003, you wrote:
>Hi everyone,
>                   I'm re-sending a question I sent several days ago=20
> because I still can't find an answer.
>
>Could anyone suggest an occasion when you would need to / find it useful=20
>to  edit a color in a project so that something happened when the mouse=20
>was 'on' the color?  My students and I are very used to editing colors to=
=20
>get the turtle to respond in particular ways but I have yet to figure out=
=20
>when/why it would be advantageous to edit  a color to respond to the=20
>mouse. I'd be VERY grateful if someone could suggest a MWorldPro project=20
>where this would be a useful facility. Any suggestions?  Thanks   Graham=20
>Williams
>1ah=AE=E9=A6j)b=9E=20
>b=B2=D3=8A=EE=9AX=AC=B6=C9=9A=B6=B6=C7(=9Am=A7=FF=E5=8A=CBl=99=ABaq=ABlr=89=
=BF=99=A8=A5=99=A9=FF=AD+-=8Aw=E8=FEl=A2=BB=A6j=DBZr=9E=9E=DB=AD=C8b=BD=E7Z=
=B6m=A7=FF=F0=C3=20
>=9A=B6=B6=C7(=9B=F9=B0~=8A=EE=9B=F6=AD=B5=A7!=99=E9=ED=B2f

"Music is the one incorporeal entrance into the higher world of knowledge=20
which comprehends mankind, but mankind cannot comprehend."
Ludwig van Beethoven



--=====================_5479559==.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<body>
Dear Graham<br><br>
Try scanning in or importing a color-coded map of the United States into
the background of a project page. Then, using the paintcan tool, color a
few states different hues even hues of the same color. Program the colors
to open and close text boxes when the mouse is clicked on them, which you
do by double-clicking a color. (Programmed colors have a telltale dot in
the middle of them)&nbsp; <br><br>
For an example of one use of program color backtrounds, I have a
toggletext procedure which will both reveal and conceal a textbox. It
works utilizing the <font color=3D"#0000FF"><b>get &quot;textwhatever
&quot;visible?</b> </font>command <br><br>
And though it would appear that you have only sixteen colors to work
with, you can greatly expand the number through the use of a what I call
a &quot;ghost turtle&quot; (a turtle which is always hidden, but and one
pixel large.) And in your procedure to respond to a mouseclick, the
colordemon function, you ask that turtle to &quot;stalk&quot; the mouse
arrow, ever relocating himself exactly under the click place, which you
get from the reporter MOUSEPOS.<br><br>
Why do all this, you ask? Because then you can ask the ghost turtle,
always at the &quot;scene of the click&quot; to suddenly appear, and
discover the color underneath himself. The COLORUNDER reporter reports
numbers, rather than colors, and so you then have enough differentiated
colors on which to reveal hundreds color numbers and of course, hundreds
of text boxes, each one of which is populated with the research of one
student. <br><br>
This makes for excellent collaborative activity, using the merge
command......<br><br>
If you're interested, we can create, or dig up a procedure to illustrate
exactly how this works this.<br>
&quot;Spoonfed Constructivist&quot;, a new oxymoron.<br><br>
best regards<br>
Harvey <br><br>
<br>
At 03:03 PM 9/25/2003, you wrote:<br>
<blockquote type=3Dcite class=3Dcite cite>Hi everyone,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;
I'm re-sending a question I sent several days ago because I still can't
find an answer.<br>
&nbsp;<br>
Could anyone suggest an occasion when you would need to / find it useful
to&nbsp; edit a color in a project so that something happened when the
mouse was 'on' the color?&nbsp; My students and I are very used to
editing colors to get the turtle to respond in particular ways but I have
yet to figure out when/why it would be advantageous to edit&nbsp; a color
to respond to the mouse. I'd be VERY grateful if someone could suggest a
MWorldPro project where this would be a useful facility. Any
suggestions?&nbsp; Thanks&nbsp;&nbsp; Graham Williams<br>
1ah=AE=E9=A6j)b=9E<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>b=B2=D3=
=8A=EE=9AX=AC=B6=C9=9A=B6=B6=C7(=9Am=A7=FF=E5=8A=CBl=99=ABaq=ABlr=89=BF=99=
=A8=A5=99=A9=FF=AD+-=8Aw=E8=FEl=A2=BB=A6j=DBZr=9E=9E=DB=AD=C8b=BD=E7Z=B6m=A7=
=FF=F0=C3<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>=9A=B6=B6=C7(=9B=F9=B0~=8A=
=EE=9B=F6=AD=B5=A7!=99=E9=ED=B2f
</blockquote>
<x-sigsep><p></x-sigsep>
<font face=3D"Bell MT">&quot;Music is the one incorporeal entrance into the
higher world of knowledge which comprehends mankind, but mankind cannot
comprehend.&quot; <br>
Ludwig van Beethoven <br><br>
<br>
</font></body>
</html>

--=====================_5479559==.ALT--