Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: Oomek on March 05, 2017, 08:05:23 AM
-
How to make AM to position object with subpixel accuracy?
When I move an image the content moves with subpixel filtering, but the frame of a picture is snapping to pixels.
The same happens with text boxes
Run this code and see. It will jump in 1 pixel increments instead smoothly transitioning across the X axis.
local test = fe.add_text( "", 0, 0, 32, 1080)
test.set_bg_rgb( 200, 200, 200 )
fe.add_ticks_callback( "tick" )
function tick( tick_time ) {
test.x += 0.01
}