Page 2 of 2

Re: A grid of rectangles

Posted: Mon Oct 10, 2016 2:48 am
by capellan
Surely, I made a mistake describing the second option.

This second option works just like Adobe Director's CopyPixels:
http://director-online.dasdeck.com/buil ... php?id=857

Could we replicate every feature of CopyPixels with scripts?
This an example of the kind of imaging application that we could
create with a feature like CopyPixels:
http://director-online.dasdeck.com/buil ... php?id=840
And these kind of effects:
http://tympanus.net/Development/ImageTiltEffect/

Al

Re: A grid of rectangles

Posted: Mon Oct 10, 2016 9:02 pm
by jiml
Good thread!

This is a little tangential to the discussion but throw this behavior into the grid image to get the 'cell' that a user clicks.

on mousedown
put item 1 of the clickloc - the left of me into hoffset
put item 2 of the clickloc - the top of me into voffset
put the selectedtext of btn mygridspacing into spacing
put 1 + (hoff div spacing), 1 + (voff div spacing)
end mousedown

Re: A grid of rectangles

Posted: Mon Oct 10, 2016 11:41 pm
by [-hh]
Yes, nice idea.
Perhaps one shouldn't rely on the label of an 'independent' button (may have changed, especially if you have several images). One could store instead the 'spacing' as a property of the created image.

Re: A grid of rectangles

Posted: Tue Oct 11, 2016 12:22 am
by bn
here is a version of the grid stack including an animation of the grid

it is a bit cleaned up, uses Herman's suggestion to do the grid at 1 Pixel size and let Livecode resize to final dimensions.
Also shows the effect that Hermann mentioned that doing a resize with an image leads to interesting effects.
use "fuzzy" to see the effect for animation.

Kind regards

Bernd

ATTACHEMENT

Re: A grid of rectangles

Posted: Tue Oct 11, 2016 9:32 pm
by capellan
Thanks again, Bernd and Hermann for sharing many great ideas
and practical examples.

I will restart some pending projects in this platform with the
hope that they get attention and critical reviews. :D

By the way, Have you checked the resize script of this stack:
http://forums.livecode.com/viewtopic.php?f=10&t=28042
My tests reveal that this script distort the position of controls
after repeated use. Why? :?

Have a nice week!

Alejandro