--back
local pos = {x = 700, y = 700}
local size = {x = 100, y = 100}
--main (mouse)
local sizeind = {x = 25, y = 25}
--background
renderDrawPolygon(pos.x, pos.y, size.x, size.y, 100, 0, 0xCC000000)
x, y = getPcMouseMovement()
inverseY = false
renderDrawPolygon(pos.x + x * 2, inverseY and pos.y + y * 2 or pos.y - y * 2, sizeind.x, sizeind.y, 100, 0, 0xFFFF004d)