Skip to content

Commit

Permalink
fix bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Feb 16, 2021
1 parent d72afbd commit 9cd2ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdf/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def f(p):
j = v * ph + py
d = bilinear_interpolate(texture, i, j)
q = rectangle(p).reshape(-1)
outside = (i < 0) | (i >= tw) | (j < 0) | (j >= th)
outside = (i < 0) | (i >= tw-1) | (j < 0) | (j >= th-1)
d[outside] = q[outside]
return d

Expand Down

0 comments on commit 9cd2ef4

Please sign in to comment.