Author Topic: Subpixel positioning  (Read 1932 times)

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Subpixel positioning
« 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.

Code: [Select]
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
}