lv_draw_sw_gradient.h
Functions
-
void lv_gradient_color_calculate(const lv_grad_dsc_t *dsc, int32_t range, int32_t frac, lv_grad_color_t *color_out, lv_opa_t *opa_out)
Compute the color in the given gradient and fraction Gradient are specified in a virtual [0-255] range, so this function scales the virtual range to the given range
- Parameters:
dsc -- The gradient descriptor to use
range -- The range to use in computation.
frac -- The current part used in the range. frac is in [0; range]
-
lv_grad_t *lv_gradient_get(const lv_grad_dsc_t *gradient, int32_t w, int32_t h)
Get a gradient cache from the given parameters
-
struct _lv_gradient_cache_t