The table assumes a canvas of size 300 by 100.
Develop the template <#62514#><#12133#>fun-for-losh<#12133#><#62514#>, which outlines functions
that consume a <#62515#><#12134#>list-of-shapes<#12134#><#62515#>.~ Solution<#62516#><#62516#>
<#12140#>Exercise 10.3.2<#12140#>
Solution<#62522#><#62522#>
<#12154#>Exercise 10.3.3<#12154#>
Solution<#62528#><#62528#>
<#12166#>Exercise 10.3.4<#12166#>
Solution<#62533#><#62533#>
<#12177#>Exercise 10.3.5<#12177#>
<#12188#>(start<#12188#> <#12189#>500<#12189#> <#12190#>100)<#12190#>
<#12191#>(d<#12191#><#12192#>raw-losh<#12192#>
<#12193#>(m<#12193#><#12194#>ove-picture<#12194#> <#12195#>-5<#12195#>
<#12196#>(m<#12196#><#12197#>ove-picture<#12197#> <#12198#>23<#12198#>
<#12199#>(move-picture<#12199#> <#12200#>10<#12200#> <#12201#>FACE))))<#12201#>
<#12202#>(stop)<#12202#>
This moves <#62538#><#12206#>FACE<#12206#><#62538#> (see exercise~#exmovinglistdat#12207> Solution<#62542#><#62542#>
When the function is fully tested, use the teachpack <#12218#>arrow.ss<#12218#> and
evaluate
the expression:
<#12223#>(start<#12223#> <#12224#>500<#12224#> <#12225#>100)<#12225#>
<#12226#>(control-left-right<#12226#> <#12227#>FACE<#12227#> <#12228#>100<#12228#> <#12229#>move<#12229#> <#12230#>draw-losh)<#12230#>
The last one creates a graphical user interface that permits users to move the
shape <#62543#><#12234#>FACE<#12234#><#62543#> by clicking on arrows. The shape then moves in increments of
<#62544#><#12235#>100<#12235#><#62544#> (right) and <#62545#><#12236#>-100<#12236#><#62545#> (left) pixels. The teachpack also provides
arrow controls for other directions. Use them to develop other moving pictures.