nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

How to do bilinear gradient?

Open SC5Shout opened this issue 5 years ago • 8 comments

How to draw bilinear gradient?

image

SC5Shout avatar Jul 05 '19 21:07 SC5Shout

just came here to say: this image is incredible. does it appear as if it's moving when looking around to anyone else??

kritzikratzi avatar Jul 05 '19 22:07 kritzikratzi

🤣 🤣 🤣 I do not know whatcha taking 'bout man. what actually TF?

SC5Shout avatar Jul 06 '19 10:07 SC5Shout

Just do 2 linear gradients?

orange451 avatar Nov 15 '19 01:11 orange451

And how to combine them to 1 geometry?

SC5Shout avatar Nov 22 '19 18:11 SC5Shout

They wont be 1 geometry--Why do they need to be?

orange451 avatar Nov 22 '19 18:11 orange451

Because every geometry is a draw call. Why to have 2 draw calls?

SC5Shout avatar Nov 22 '19 18:11 SC5Shout

I highly doubt this will be the bottleneck in your application. AFAIK NanoVG doesn't support bilinear gradients, so you're stuck with your 2 drawcalls 🤷‍♂

orange451 avatar Nov 22 '19 18:11 orange451

I was hoping that someone would know how to modify nanovg to support bilinear gradient.

SC5Shout avatar Nov 22 '19 18:11 SC5Shout