[squeakland] computed costumes

Steve Thomas sthomas1 at gosargon.com
Mon Mar 24 16:50:42 EDT 2014


Ted,

I had a similar problem trying to visualize all the different combinations
of turn by angles in a loop.

In Etoys its simple. Make the drawing on a hidden playfied.  Then set the
Sketch's graphic to the Playfield's: pen trail graphic

[image: Inline image 1]

Cheers,
Stephen


On Mon, Mar 24, 2014 at 12:31 PM, Ted Kaehler <Ted at vpri.org> wrote:

> Folks,
>         I'm building a math demo.  It is a complex diagram that changes as
> the user moves a slider.  I'm using the turtle Pen to draw the diagram.  It
> needs to be "double-buffered" so that the user does not see the area get
> cleared to white and does not see the drawing being made.  That is, no
> flashing.
>         Here's the plan.  Make a drawing (SketchMorph).  Make another
> drawing that is the same size and hide it.  Each sketch will be a costume
> for a player of the first sketch.
>         Whenever the slider moves, get the Form of the sketch that is not
> currently showing.  Draw into it with the Pen.  Switch it to be the costume
> that shows.
>         Is there a simpler way to do this in Etoys?
>         If not, maybe we can extend Etoys to allow this, so an author does
> not need to know Squeak to make it happen.
>
> --Ted.
>
> --
> Ted Kaehler
> If you're not hungry enough to eat an apple, then you're not hungry. If
> you are that hungry, then do eat an apple.  -- paraphrasing Michael Pollan.
> http://www.vpri.org/html/team_bios/kaehler.html
> _______________________________________________
> squeakland mailing list
> squeakland at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/squeakland
>



-- 

To some of us, writing computer programs is a fascinating game. A program
is a building of thought. It is costless to build, weightless, growing
easily under our typing hands. If we get carried away, its size and
complexity will grow out of control, confusing even the one who created it.
This is the main problem of programming. It is why so much of today's
software tends to crash, fail, screw up.

When a program works, it is beautiful. The art of programming is the skill
of controlling complexity. The great program is subdued, made simple in its
complexity.

- Martin Harverbeke (from Eloquent
JavaScript<http://eloquentjavascript.net/index.html>
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20140324/c7502619/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2014-03-24 at 4.49.29 PM.png
Type: image/png
Size: 35698 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20140324/c7502619/attachment-0001.png>


More information about the squeakland mailing list