[MWForum]Un-do setbg/fill bg with pattern

Jerry Balzano mwforum@lists.mathcats.com
Wed, 19 Feb 2003 10:52:15 -0800


--============_-1166441759==_ma============
Content-Type: text/plain; charset="us-ascii"

Hi Clara -

If you issue a "snapshot" command prior to your "setbg" command, then issue
a "restore" command afterward, the state of the background prior to the
"setbg" command will be restored.

			-Jerry B

At 8:52 AM -0800 2/19/03, Clara Jackson wrote:
>Content-Type: text/html
>Content-Transfer-Encoding: 8bit
>Content-Description: HTML
>Hello! Some of the Gifted and Talented students I work with have come
>across 2 problems.....help!
> 
>1.  How do you "un-do" a "setbg" command once it has been run? I have, of
>course, deleted and tried numerous times, but the background remains the
>same.
>
>2.  The program has a "sleuth" searching for a hidden treasure.  When he
>"finds" it through a "colorunder" command, the program clears the graphics
>and the player can start the game again with a new path.  We only are able
>to "dump" the grass on the page by using the paint can.  Of course, that
>ruins the "randomness" of the program they have written.
>How can you program a page to fill with a "pattern" or "rainbow" as a
>background for other images that will paste on top of it?
> 
>Thanks!
>Clara

-------------------------
Dr. Gerald J. Balzano
Teacher Education Program
Dept of Music
Laboratory for Comparative Human Cognition
Cognitive Science Program
UC San Diego
La Jolla, CA 92093
(619) 822-0092
gjbalzano@ucsd.edu
--============_-1166441759==_ma============
Content-Type: text/html; charset="us-ascii"

<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { margin-top: 0 ; margin-bottom: 0 }
 --></style><title>Re: [MWForum]Un-do setbg/fill bg with
pattern</title></head><body>
<div>Hi Clara -</div>
<div><br></div>
<div>If you issue a &quot;snapshot&quot; command prior to your
&quot;setbg&quot; command, then issue a &quot;restore&quot; command
afterward, the state of the background prior to the &quot;setbg&quot;
command will be restored.</div>
<div><br></div>
<div><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>-Jerry B</div>
<div><br></div>
<div>At 8:52 AM -0800 2/19/03, Clara Jackson wrote:</div>
<blockquote type="cite" cite>Content-Type: text/html<br>
Content-Transfer-Encoding: 8bit<br>
Content-Description: HTML</blockquote>
<blockquote type="cite" cite><font size="-1">Hello! Some of
the&nbsp;Gifted and Talented students I work with have come
across&nbsp;2&nbsp;problems.....help!</font></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite><font size="-1">1.&nbsp; How do you
&quot;un-do&quot; a &quot;setbg&quot; command once it has been run? I
have, of course, deleted and tried numerous times, but the background
remains the same.</font></blockquote>
<blockquote type="cite" cite><font size="-1"><br>
2.&nbsp; The program has a &quot;sleuth&quot; searching for a hidden
treasure.&nbsp; When he &quot;finds&quot; it through a
&quot;colorunder&quot; command, the program clears the graphics and
the player can start the game again with a new path.&nbsp; We only
are able to &quot;dump&quot; the grass on the page by using the paint
can.&nbsp; Of course, that ruins the &quot;randomness&quot; of the
program they have written.<br>
How can you program a page to fill with a &quot;pattern&quot; or
&quot;rainbow&quot; as a background for other images that will paste
on top of it?</font></blockquote>
<blockquote type="cite" cite><font
size="-1">&nbsp;</font></blockquote>
<blockquote type="cite" cite><font
size="-1">Thanks!</font></blockquote>
<blockquote type="cite" cite><font size="-1">Clara</font></blockquote>
<div><br></div>

<div>-------------------------<br>
Dr. Gerald J. Balzano<br>
Teacher Education Program<br>
Dept of Music<br>
Laboratory for Comparative Human Cognition<br>
Cognitive Science Program<br>
UC San Diego<br>
La Jolla, CA 92093<br>
(619) 822-0092<br>
gjbalzano@ucsd.edu</div>
</body>
</html>
--============_-1166441759==_ma============--