<div dir="ltr">I've written an interactive turtle graphics package, complete with<div>animated turtle imagery, aimed at Dr Racket using parents with elementary-school aged kids.</div><div><br></div><div>It's available on github: <a href="https://github.com/danprager/turtlegraphics" target="_blank">https://github.com/danprager/turtlegraphics</a></div>
<div><br></div><div><a href="http://htmlpreview.github.com/?https://github.com/danprager/turtlegraphics/blob/master/turtle-graphics.html" target="_blank">Online docs and tutorial</a>.</div><div><br></div><div>I'd appreciate tips in a couple of areas:</div>
<div><br></div><div>1. Code organization:</div>
<div> </div><div>At the moment everything is dumped in one directory. My problem is that when I put -- for example -- an example in an /examples subdirectory and (require "../turtle-graphics.rkt") the line </div>
<div><br></div><div>(define *turtle-image* (read-bitmap "turtle.png"))</div><div><br></div><div>in turtle-graphics.rkt treats the subdirectory as the current directory rather than the parent directory, giving a file not found directory.</div>
<div><br></div><div style>2. How do I turn an image built up from (empty-scene ...) into a bitmap% ? I want to use (write-animated-gif ...) to make a few animated gifs to spruce up my documentation.</div><table cellspacing="0" class="" style="white-space:nowrap;color:rgb(0,0,0);font-family:serif;font-size:medium;background-color:rgb(232,232,255)">
<tbody><tr><td style="padding-left:0px;padding-right:0px;vertical-align:text-top"><br></td><td style="padding-left:0px;padding-right:0px;vertical-align:text-top"></td></tr></tbody></table><div><div>Finally, is this the kind of thing that would be worth putting up on PLaneT straight-away, or better to mature it a bit on github?</div>
<div><br></div><div><br>
</div><div>Thanks </div><div><br></div><div>Dan</div></div></div>