Skip to content

Commit 9913f15

Browse files
committed
vfx: code refactoring
1 parent 867500f commit 9913f15

File tree

3 files changed

+93
-125
lines changed

3 files changed

+93
-125
lines changed

main/inc/user/vfx_core.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
#include <stdint.h>
1212

13-
extern uint32_t vfx_get_color(float color_h, float color_l);
13+
extern uint32_t hsl2rgb(float H, float S, float L);
14+
1415
extern void vfx_draw_pixel_raw(uint8_t x, uint8_t y, uint8_t z, uint32_t color);
1516
extern void vfx_draw_pixel(uint8_t x, uint8_t y, uint8_t z, float color_h, float color_l);
1617
extern void vfx_fill_cube(uint8_t x, uint8_t y, uint8_t z, uint8_t cx, uint8_t cy, uint8_t cz, float color_h, float color_l);

0 commit comments

Comments
 (0)