Painting on an image in a group?

Scott Rossi scott at tactilemedia.com
Tue Sep 30 06:00:06 EDT 2008


Recently, David Bovill wrote:

> a couple of
> questions - you use "the text of image" for the contents - just wandering
> why you like that syntax (it was new to me)

I do, in fact, like the syntax -- it transfers both the image and alphaData
to the grouped image in one action.


> oh and where's the script to select the paint tools

See the card script.  You won't need this but I used a mouseMove handler to
automatically show/hide the proxy image and switch the tools.  When you are
painting in the demo stack, you are painting in the proxy image; when the
mouse moves outside the image rect, the proxy image is hidden and its data
is transferred to the grouped image.

BTW, an opaque object is required here to define the limits of the active
paint region, which is why a graphic with noop ink is positioned behind the
group.  Mouse tracking will not work on a transparent object (ie. an image
with no paint in it).

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list