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
When drawing the stroke of an ellipse (and strokeRect, StrokeLine, etc.) it would be nice to be able to add a thickness to the stroke.
On rectangles and ellipses an option to have the stroke be either within the bounds or on the bounds would be great as well.
This option would ideally act like the CSS property box-sizing: border-box; and would make it so that your shape would automatically be made smaller so that the thicker line could fit inside the originally specified width and height.
I imagine it as an option on the renderable which is what I illustrated here.
The text was updated successfully, but these errors were encountered:
👍 related to #994, should somehow work for now at least in the fitStrokeToBoundingBox style when false, and if you have friendly GPU implementing a lineWidth > 1.
I was toying with chatGPT this morning, and asked him/her to write me a fragment shader that draws a line, including with a thickness parameter, here it is:
It initially gave me a WebGL 2.0 version, and without any variable, but as I explained what I needed, we came to this one after a couple of iterations, Is it not amazing ?
When drawing the stroke of an ellipse (and strokeRect, StrokeLine, etc.) it would be nice to be able to add a thickness to the stroke.
On rectangles and ellipses an option to have the stroke be either within the bounds or on the bounds would be great as well.
This option would ideally act like the CSS property
box-sizing: border-box;
and would make it so that your shape would automatically be made smaller so that the thicker line could fit inside the originally specified width and height.I imagine it as an option on the renderable which is what I illustrated here.
The text was updated successfully, but these errors were encountered: