On Tue, Dec 02, 2008 at 02:03:34PM -0500, Tieg Zaharia wrote:
> 1) is there any way to flip an object, namely an image? I grep'd the source
> for something like flip() or reverse() but didn't find anything. Rotate is
> cool, but then the image ends up upside down when you go 180. (I wonder if
> skew would work with negative top values?)

I was just thinking about this the other when I was looking through
the Micro Lua DS docs (which I'm borrowing some good ideas for
sprites and game maps.)
<http://docs.google.com/View?docid=dhhg3sq4_25dbbj2qtn>

Their images have `mirrorH` and `mirrorV` methods for this. (And
`setTint`.) Though I think it would be hand to add `matrix` as well,
to define your own transformations.
<http://www.cairographics.org/matrix_transform/>

> 2) I had a stack that contained an image within a stack (the numbers here
> are approximate since I was working on another machine):
> 
> stack (top=0, left=10)
> > nested stack (w=30)
> >> image (w=30)
> 
> The nested stack is the width of the image (~30px). Whenever I tried to move
> the nested stack by 1 pixel (stack.left += 1) it would move the nested stack
> 30 pixels [...]

Yes, this is a bug in the `left` and `top` methods for nested slots.
A fix is up.  These two methods should report their coordinates
relative to their parent, but they were reporting actual
coordinates.

_why

Reply via email to