p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Support 'justified' alignment as an option for textAlign

Open dhowe opened this issue 5 years ago • 12 comments

Support 'JUSTIFIED' alignment as an option for textAlign(), so that we can have text that looks like below. Note: we would need to check that the optional 'width' param was specified to text() when using this alignment. If I remember correctly there is an nice dynamic programming solution to this problem.

image

dhowe avatar Dec 03 '18 00:12 dhowe