hensei-api/sig/preview_service/grid.rbs
Justin Edmund 00890eda10 Add the preview service
This is where the bulk of the work is. This service renders out the preview images bit by bit. Currently we render the party name, creator, job icon, and weapon grid.

This includes signatures and some fonts.
2025-01-18 08:55:38 -08:00

18 lines
428 B
Text

module PreviewService
class Grid
GRID_MARGIN: Integer
GRID_CELL_SIZE: Integer
GRID_START_X: Integer
GRID_START_Y: Integer
def grid_position: (String type, Integer idx) -> { x: Integer, y: Integer }
def draw_grid_item: (
MiniMagick::Image image,
MiniMagick::Image item_image,
String type,
Integer idx,
?resize_to: Integer
) -> MiniMagick::Image
end
end