Picture.y read/write property


Get or set the Picture vertical position. The vertical position start from 0 (top side of the parent widget) and increase to the bottom side of the parent widget.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Picture.y sample", 340, 600) local picture = ui.Picture(win, "examples/LuaRT.png", -76, 10) -- shows the window win:show() -- update user interface and increase Picture horizontal position repeat ui.update() picture.y = picture.y + 1 until not win.visible or (picture.y > 600)