News for hackers. Stuff that matters.
Re:It's always been you, Canvas2D by samwillis on Friday March 04, 2022 @07:53AM (#30553981)
Can we use these yet?

ctx.createConicGradient() - 15.15% of users (Firefox since 90 and Safari since 15, not yet in Chromium/Blink without `new-canvas-2d-api` flag)

https://caniuse.com/?search=createConicGradient

Not found on "Can I Use":

- All text modifiers

- ctx.roundRect()

- context.reset()

- CanvasFilter

- contextlost/contextrestored

Anyone know when these will be available in browsers?

Looks like in chrome they are all under the `new-canvas-2d-api` flag:

https://chromestatus.com/feature/6051647656558592

Re:It's always been you, Canvas2D by mysteryDate on Friday March 04, 2022 @09:32AM (#30555294)
These are all available as of Chrome M99! Thanks for reminding me to update caniuse!
Re:It's always been you, Canvas2D by geewee on Friday March 04, 2022 @09:47AM (#30555520)
What about all the other browsers?
Re:It's always been you, Canvas2D by mysteryDate on Friday March 04, 2022 @09:57AM (#30555690)
So, these functions are are now currently part of the whatwg spec, so other browsers have stated their intention to implement them and this is underway.
Re:It's always been you, Canvas2D by geewee on Friday March 04, 2022 @10:43AM (#30556296)
Wonderful!
Re:It's always been you, Canvas2D by JKCalhoun on Friday March 04, 2022 @08:28AM (#30554400)
New is always frustrating.

Instead I'll write my own context.reset_bogus() that simply calls canvas.width = canvas.width

Same for round rect. Some of the other features though ... not so simple, ha ha.