lv_draw_buf_set_palette() function
Set the palette color of an indexed image. Valid only for `LV_COLOR_FORMAT_I1/2/4/8`
Arguments
draw_buf
pointer to an image descriptor
index
the palette color to set: - for `LV_COLOR_FORMAT_I1`: 0..1 - for `LV_COLOR_FORMAT_I2`: 0..3 - for `LV_COLOR_FORMAT_I4`: 0..15 - for `LV_COLOR_FORMAT_I8`: 0..255
color
the color to set in lv_color32_t format