6#ifndef LV_DRAW_SW_GRADIENT_H
7#define LV_DRAW_SW_GRADIENT_H
23#if LV_GRADIENT_MAX_STOPS < 2
24#error LVGL needs at least 2 stops for gradients. Please increase the LV_GRADIENT_MAX_STOPS
34typedef lv_color_t lv_grad_color_t;
54#if LV_DITHER_ERROR_DIFFUSION == 1
55 lv_scolor24_t * error_acc;
void lv_gradient_free_cache(void)
struct _lv_gradient_cache_t lv_grad_t
lv_grad_t * lv_gradient_get(const lv_grad_dsc_t *gradient, lv_coord_t w, lv_coord_t h)
void lv_gradient_cleanup(lv_grad_t *grad)
LV_ATTRIBUTE_FAST_MEM lv_grad_color_t lv_gradient_calculate(const lv_grad_dsc_t *dsc, lv_coord_t range, lv_coord_t frac)
void lv_gradient_set_cache_size(size_t max_bytes)
Definition lv_draw_sw_gradient.h:40
lv_color_t * map
Definition lv_draw_sw_gradient.h:47
lv_coord_t size
Definition lv_draw_sw_gradient.h:50
lv_coord_t alloc_size
Definition lv_draw_sw_gradient.h:49
uint32_t life
Definition lv_draw_sw_gradient.h:43
uint32_t filled
Definition lv_draw_sw_gradient.h:45
uint32_t key
Definition lv_draw_sw_gradient.h:41
uint32_t not_cached
Definition lv_draw_sw_gradient.h:46
Definition lv_style.h:155
Definition lv_color.h:224