Added initial support for pages, fixed image not accounting for margin refactor

This commit is contained in:
2026-04-17 17:45:58 -05:00
parent 9f654129ef
commit d158d2fdd2
5 changed files with 94 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ module CyberarmEngine
def render
@image.draw(
styled(:border_thickness_left) + styled(:padding_left) + @x,
styled(:border_thickness_top) + styled(:padding_top) + @y,
styled(:margin_left) + styled(:border_thickness_left) + styled(:padding_left) + @x,
styled(:margin_top) + styled(:border_thickness_top) + styled(:padding_top) + @y,
@z + 2,
@scale_x, @scale_y, styled(:color)
)