Documentation

nvg::BoxGradient

Function

Paint nvg::BoxGradient(float x, float y, float w, float h, float r, float f, const vec4&in color1, const vec4&in color2)

float x

float y

float w

float h

float r

float f

vec4 color1

vec4 color2

Returns nvg::Paint
Paint nvg::BoxGradient(const vec2&in pos, const vec2&in size, float r, float f, const vec4&in color1, const vec4&in color2)

vec2 pos

vec2 size

float r

float f

vec4 color1

vec4 color2

Returns nvg::Paint