Skip to content

Commit

Permalink
docs: specify that pixel coordinates of hotspot are rounded to the ne…
Browse files Browse the repository at this point in the history
…arest (#28)

Since we now have a raw API, we shall specify how this is calculated, so
users of the raw API can do the same in their rendering code.
  • Loading branch information
jinliu authored Apr 9, 2024
1 parent 17ebb7f commit e5e3d14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/MAKING_THEMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ resize_algorithm = bilinear

# "hotspot" is where in your cursor the actual "click point" should be.
# this is in absolute coordinates. x+ is east, y+ is north.
# the pixel coordinates of the hotspot at size are rounded to the nearest:
# (round(size * hotspot_x), round(size * hotspot_y))
hotspot_x = 0.0 # this goes 0 - 1
hotspot_y = 0.0 # this goes 0 - 1

Expand Down

0 comments on commit e5e3d14

Please sign in to comment.