Hey, I was checking the examples and found a bug in the zoom.wlua example. You can see it's not working. If I'm not wrong the idea of the example is to make an image slowly increase in size by using the resize() method.
The problem is that when you execute resize with a factor of 0, the picture width and height goes to 0. Any subsequent resize of the image has no effect due to the fact that resize works on current dimensions (current_widht=0 * 5 = 0). The original width and height got lost in the first resize.
Possible solutions:
Add new properties to Picture widget so it saves it's original original_width and original_height or maybe zoom
Rework the example
Hope I'm clear with the explanation. And awesome project btw!
Hey, I was checking the examples and found a bug in the zoom.wlua example. You can see it's not working. If I'm not wrong the idea of the example is to make an image slowly increase in size by using the
resize()
method.The problem is that when you execute resize with a factor of 0, the picture
width
andheight
goes to0
. Any subsequent resize of the image has no effect due to the fact that resize works on current dimensions (current_widht=0 * 5 = 0). The originalwidth
andheight
got lost in the first resize.Possible solutions:
Picture
widget so it saves it's originaloriginal_width
andoriginal_height
or maybezoom
Hope I'm clear with the explanation. And awesome project btw!