NanoVG basically has “blurry rounded rectangle” as a single-pass drawing primitive and it’s kind of embarrassing how big a performance improvement it is for typical UIs.
-
Show this thread
-
Replying to @pcwalton
It's also the only gradient type the shader has :) The rounded rect gradient (or box gradient as I call it) is also used for radial gradient and linear gradient. I was thinking of some kind of curve to control the blend, to allow more gaussian-ish blur, but never got around it.
2 replies 0 retweets 1 like
Replying to @MikkoMononen
BTW NanoVG is great, thanks for writing it :)
1:24 PM - 16 Apr 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.