Date: Sat, 22 Jul 2017 20:59:33 -0700
From: Bret Victor
Subject: Re: Animation in Realtalk
This is so great!  It's really inspiring and motivating to see this.

One of my favorite things is that all of the source code for the activity is captured in the photo!  That such a new thing for any programming system.

Your use of "make below into" and blank pages is really interesting.  Thinking about it, I suppose the ideal way to write "make below into display" would be something like:

    When /canvas/ is a "canvas", and /display/ is below (you):
        Wish (display) looks like (canvas).
    End

We can't do "display is below you" yet (we will eventually), but the wish can be done already, with a page like:

    -- wish x looks like y

    

    When /someone/ wishes /target/ looks like /source/,
         /source/ has region /source_region/ in /camera/'s coordinates, /camera/ is a "camera",
         /camera/ sees drawable image /image/,
         /target/ has width /target_width/, /target/ has height /target_height/:

         

        local illum = {
            transform_to_region(target_width, target_height, source_region),
            Draw an image (image.handle),
            with dimensions (image.width, image.height),
            with crop dimensions (image.width, image.height).
        }
    Wish (source) has illumination (illum).
    End

Now it's easy to wish that anything looks like anything else.  This starts moving towards the "breaking down high-level wishes into low-level wishes" pattern that we were talking about last year.



On Jul 21, 2017, at 11:23 PM, Paula Te wrote:

Josh and I made a very rough frame animation prototype in Realtalk with the help of tater tot. 

Video: [Video Jul 21, 23 04 02.mov]

<IMG_7278.jpeg>

-- 
************************
************************