PasteRack.org | ||
Paste # 7953 | ||
2014-02-11 11:33:14 | ||
Fork as a new paste. | ||
Paste viewed 981 times. | ||
Tweet | ||
Embed: | ||
=>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> (A x 0 y 0 brush: #f dc: #(#(1.0 0.0 0.0 1.0 0.0 0.0) 0.0 0.0 1.0 1.0 0.0)) (B x 0 y 0 brush: #f dc: #(#(1.0 0.0 0.0 1.0 0.0 0.0) 0.0 0.0 1.0 1.0 0.0)) (C x 20 y 0 brush: #f dc: #(#(1.0 0.0 0.0 1.0 0.0 0.0) 0.0 0.0 1.0 1.0 0.0)) <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title></title><link rel="stylesheet" type="text/css" href="scribble.css" title="default" /><link rel="stylesheet" type="text/css" href="racket.css" title="default" /><link rel="stylesheet" type="text/css" href="scribble-style.css" title="default" /><script type="text/javascript" src="scribble-common.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;">•</td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">???</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._%28gentag._0%29%29" class="tocsubseclink" data-pltdoc="x">???</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="versionNoNav">5.90.0.9</span></div><blockquote class="SCodeFlow"><table cellspacing="0" class="RktBlk"><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">void</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">debug</span><span class="hspace"> </span><span class="RktSym">who</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lambda</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">get-brush</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">bt</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">get-transformation</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">dct</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">get-transformation</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">displayln</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">list</span><span class="hspace"> </span><span class="RktSym">who</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">x</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">y</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">brush:</span><span class="hspace"> </span><span class="RktSym">bt</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">dc:</span><span class="hspace"> </span><span class="RktSym">dct</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">draw-pict</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-width</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-height</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">filled-rectangle</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected Image:</span><span class="hspace"> </span><span class="RktVal">Two squares a black and a red"</span></td></tr><tr><td><p><span class="RktRes">"Expected Image:</span><span class="hspace"> </span><span class="RktRes"></span><span class="hspace"> </span><span class="RktRes"></span><span class="hspace"> </span><span class="RktRes"></span><span class="hspace"> </span><span class="RktRes"></span><span class="hspace"> </span><span class="RktRes">Two squares a black and a red"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected Transformation: Same for A and B. Some difference for C."</span></td></tr><tr><td><p><span class="RktRes">"Expected Transformation: Same for A and B. Some difference for C."</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">debug</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">A</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hc-append</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">debug</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">B</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">debug</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">C</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">colorize</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">"red"</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><p><img src="pict.png" alt="image" width="40" height="20" /></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">color:</span><span class="hspace"> </span><span class="RktSym">name</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">the-color-database</span><span class="hspace"> </span><span class="RktSym">find-color</span><span class="hspace"> </span><span class="RktSym">name</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">red</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">color:</span><span class="hspace"> </span><span class="RktVal">"red"</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">green</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">color:</span><span class="hspace"> </span><span class="RktVal">"green"</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">blue</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">color:</span><span class="hspace"> </span><span class="RktVal">"blue"</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">square-path</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">new</span><span class="hspace"> </span><span class="RktSym">dc-path%</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">move-to</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">line-to</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">line-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">line-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">line-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">+</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-width</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-height</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lambda</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">draw-pict</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">draw-path</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">square-path</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shady</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lambda</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">get-brush</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">new-brush</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">new</span><span class="hspace"> </span><span class="RktSym">brush%</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">color</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">get-color</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">style</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">get-style</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">stipple</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">get-stipple</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gradient</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">new</span><span class="hspace"> </span><span class="RktSym">linear-gradient%</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">*</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">stops</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">list</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">list</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">red</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">list</span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktSym">green</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">list</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">blue</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">transformation</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">get-transformation</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">set-brush</span><span class="hspace"> </span><span class="RktSym">new-brush</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">draw-pict</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send</span><span class="hspace"> </span><span class="RktSym">dc</span><span class="hspace"> </span><span class="RktSym">set-brush</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-width</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pict-height</span><span class="hspace"> </span><span class="RktSym">pict</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">newline</span><span class="RktPn">)</span></td></tr><tr><td><p><span class="RktOut"></span></p></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">newline</span><span class="RktPn">)</span></td></tr><tr><td><p><span class="RktOut"></span></p></td></tr><tr><td><table cellspacing="0"><tr><td></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected: A (black) rectangle"</span></td></tr><tr><td><p><span class="RktRes">"Expected: A (black) rectangle"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">echo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td><p><span class="RktRes">'(rect)</span></p></td></tr><tr><td><p><img src="pict_2.png" alt="image" width="20" height="20" /></p></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected: A rectangle filled with nothing (default brush is empty)"</span></td></tr><tr><td><p><span class="RktRes">"Expected: A rectangle filled with nothing (default brush is empty)"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">echo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td><p><span class="RktRes">'(fill (rect))</span></p></td></tr><tr><td><p><img src="pict_3.png" alt="image" width="20" height="20" /></p></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected: A rectangle filled with linear gradient (red to green)"</span></td></tr><tr><td><p><span class="RktRes">"Expected: A rectangle filled with linear gradient (red to green)"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">echo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shady</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td><p><span class="RktRes">'(shady (fill (rect)))</span></p></td></tr><tr><td><p><img src="pict_4.png" alt="image" width="20" height="20" /></p></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected: Two red-to-green rectangles"</span></td></tr><tr><td><p><span class="RktRes">"Expected: Two red-to-green rectangles"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">echo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hc-append</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shady</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shady</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td><p><span class="RktRes">'(hc-append (shady (fill (rect))) (shady (fill (rect))))</span></p></td></tr><tr><td><p><img src="pict_5.png" alt="image" width="40" height="20" /></p></td></tr></table></td></tr><tr><td><span class="stt">> </span><span class="RktVal">"Expected: Two red-to-green rectangles"</span></td></tr><tr><td><p><span class="RktRes">"Expected: Two red-to-green rectangles"</span></p></td></tr><tr><td><span class="stt">> </span><span class="RktPn">(</span><span class="RktSym">echo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">let</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shady</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fill</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rect</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hc-append</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0"><tr><td><p><span class="RktRes">'(let () (define p (shady (fill (rect)))) (hc-append p p))</span></p></td></tr><tr><td><p><img src="pict_6.png" alt="image" width="40" height="20" /></p></td></tr></table></td></tr></table></blockquote></div></div><div id="contextindicator"> </div></body></html>