Draw: Add method Draw_DrawCircle.
* Add auxiliar methods `Draw_SetPixel` and `Draw_AddPixel`. * Refactor `Draw_DrawBoxFilled` and `Draw_DrawBox`, to use previous methods. * Implement `Draw_DrawCircle` using naïve implementation, with `sqrt`.
This commit is contained in:
@@ -26,6 +26,14 @@ int MaximumInt(int i0, int i1) {
|
||||
return i0;
|
||||
}
|
||||
|
||||
uint8_t SumClamp_uint8(const uint8_t a, const uint8_t b) {
|
||||
const uint16_t sum = a + b;
|
||||
if (sum > 255) {
|
||||
return 255;
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
// Rect
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user