You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, when n=6, the maximum iterations that this could use is (6*2)^2 = 144 calls to DrawStringAnchored! This is wildly inefficient and requires a lot of CPU power.
I am wondering if there is an alternative and less intensive way to create a similar text stroke effect, or if such a function could be added. Thanks!
The text was updated successfully, but these errors were encountered:
In the example given in the meme.go demonstration for text with stroke width, the code inefficiently loops in an O(n^2) loop.
gg/examples/meme.go
Lines 15 to 26 in 8febc0f
In this case, when n=6, the maximum iterations that this could use is (6*2)^2 = 144 calls to
DrawStringAnchored
! This is wildly inefficient and requires a lot of CPU power.I am wondering if there is an alternative and less intensive way to create a similar text stroke effect, or if such a function could be added. Thanks!
The text was updated successfully, but these errors were encountered: