hhMockup

hh hh at hyperhh.de
Sun Feb 25 21:53:48 EST 2018


["hhMockup" is an enhanced version of the stack I used to produce the demos for
my LCGlobal talk "Perspective and affine transformations of images" in Nov 2017.]

The stack contains a *very fast* version of the perspective image-transformation
given in Raspberry Pi stacks collection #85 (pure LC Script):
JavaScript is used for the lengthy transforms of the imageData and applying a few
image filters. Everything else, especially the computation of the "perspective
matrix" and all the display is still LC Script.

You can scale, skew, translate and rotate in single or combined actions and
perspective transform images up to screen size.

*** The perspective transform is also used to show images in a given MOCKUP frame.
There is also demo of running a gif (EM's jockey) in such mockup frames.

There are still more details to explore, e.g. expanding the transform of the
control polygon (and by that the image) horizontally, vertically or both.


Download "hhMockup" from "Sample Stacks"
(or http://livecodeshare.runrev.com/stack/867).

The stack is tested to run using LC 8/9 on Mac/ Win 7+10/ Ubuntu
(a few issues on linux, use latest LC 8/9 there).

You can import your images and export your transformed artwork.
Have fun! 



More information about the use-livecode mailing list