Princesses for Slideshow
The mflatt/princess libraries provide picts and constructors
for princesses, thought bubbles, castles, wishing wells, and a few
other items. The (planet mflatt/princess/play-movie) library is a slideshow program that uses
those elements for a fairy tale, which was the start of an conferenec
talk about Scribble.
|(make-princess|| [||#:side side|| || || || |
| || ||#:rotate angle|| || || || |
| || ||#:dress dress-color|| || || || |
| || ||#:hair hair-color|| || || || |
| || ||#:pen-width pen-width|| || || || |
| || ||#:arm-angle arm-angle|| || || || |
| || ||#:leg-angle leg-angle|| || || || |
| || ||#:front-arm-angle front-arm-angle]|| || || || |
| || ||#:smile? smile?|| || || || |
| || [||#:shake shake|| || || || |
| || ||#:clip-body clip-body|| || || || |
| || ||#:clip-dx clip-dx|| || || || |
| || ||#:clip-dy clip-dy])|| ||→|| ||pict?|
| side : (or/c 'front 'right 'left) = 'front|
| angle : real? = 0.0|
| dress-color : (or/c string? (is-a?/c color%)) = "pink"|
| hair-color : (or/c string? (is-a?/c color%)) = "yellow"|
| pen-width : real? = 1|
| arm-angle : real? = 0.0|
| leg-angle : real? = 0.0|
| front-arm-angle : real? = 0.0|
| smile? : #t|
| shake : real? = 0.0|
| clip-body : (or/c #f (is-a?/c region%)) = #f|
| clip-dx : real? = 0|
| clip-dy : real? = 0|
Returns a pict for a princess – either facing forward, to the right,
or to the left, depending on side.
Most arguments are self-explanatory, except for
angle – rotates the whole princess picture
arm-angle and leg-angle – for
'left and 'right mode only, rotates arm and
leg swing relative to the body.
front-arm-angle – for 'front mode only,
rotates arms relative to the body.
shake – for 'front mode only, an amount to
rotate the head to “shake” it (as if saying “no”); the
number is in drawing units, rather than an angle
clip-body, clip-dx, clip-dy – for
'front mode only, a clipping region to apply to the
princess’s body, but not her neck; the clip-dx and
clip-dy arguments move the clipping region relative to
2 Thought Bubbles
Pins a thought balloon under base, where from is the
thinker and to is the thinkee to have a thought balloon under
The grow-n argument can range from 0.0 to
1.0, where 0.0 is when from is about to
start thinking, 1.0 is when the thought is fully formed, and
intermediate points have the thought bubble fading in. The
gone-n argument starts at 0.0 with the thought
intact, and then pops away as gone-n changes to
1.0. (The gone-n value should be 0.0 if
grow-n is less than 1.0.)
The wrap-thought procedure can be used to adjust just the
thought-bubble pict before it is pinned under base for the
A pink and purple castle.
Corresponds to the window in
4 Wishing Wells
A wishing well.
A sign for a wishing well.
The pict that is the “1” in
, which is useful for finding its relative location.
5 Things to Wish For
A fish bowl with a goldfish.
Princess-cut, of course.
6 Fairy Tale Movie
Registers slides to play the Three Princesses movie. The movie pauses
at various points (advance with space bar or arrow) so that the
speaker can control the pace.
7 Playing the Movie