feat(draw_sw): implemented radial gradient background (#6170)

Co-authored-by: Zoltan Janosy <zjanosy@fishman.com>
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Zoltan Janosy
2024-05-26 17:17:16 +02:00
committed by GitHub
parent b8b7e29156
commit 48caa8d772
57 changed files with 1449 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
/**
/**
* @file lv_math.h
*
*/
@@ -111,6 +111,22 @@ void /* LV_ATTRIBUTE_FAST_MEM */ lv_sqrt(uint32_t x, lv_sqrt_res_t * q, uint32_t
//! @endcond
/**
* Alternative (fast, approximate) implementation for getting the square root of an integer.
* @param x integer which square root should be calculated
*/
int32_t /* LV_ATTRIBUTE_FAST_MEM */ lv_sqrt32(uint32_t x);
/**
* Calculate the square of an integer (input range is 0..32767).
* @param x input
* @return square
*/
static inline int32_t lv_sqr(int32_t x)
{
return x * x;
}
/**
* Calculate the integer exponents.
* @param base