MCPcopy Create free account
hub / github.com/DISTRHO/DPF / linearGradient

Method linearGradient

dgl/src/NanoVG.cpp:782–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780// Paints
781
782NanoVG::Paint NanoVG::linearGradient(float sx, float sy, float ex, float ey, const Color& icol, const Color& ocol)
783{
784 if (fContext == nullptr) return Paint();
785 return nvgLinearGradient(fContext, sx, sy, ex, ey, icol, ocol);
786}
787
788NanoVG::Paint NanoVG::boxGradient(float x, float y, float w, float h, float r, float f, const Color& icol, const Color& ocol)
789{

Callers

nothing calls this directly

Calls 2

PaintClass · 0.85
nvgLinearGradientFunction · 0.85

Tested by

no test coverage detected