diff options
| author | kkard2 <[email protected]> | 2025-09-14 10:14:08 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2025-09-14 10:14:08 +0200 |
| commit | 90d40f283f6e7a8a1c57849841ddee11f362d95e (patch) | |
| tree | 904705f81a88802baa543b62bbaa120b516b484a /examples/line.c | |
| parent | fe1c224efcfe052fbfc16570d9c9c3cde4ad83ca (diff) | |
refactored everything
procrastination experience
Diffstat (limited to 'examples/line.c')
| -rw-r--r-- | examples/line.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/line.c b/examples/line.c index 31724a9..71d7492 100644 --- a/examples/line.c +++ b/examples/line.c @@ -10,7 +10,7 @@ static float angle = 0.0f; void init() {} void draw_frame(sponge_Texture c) { - sponge_clear(c, 0xFF000000); + sponge_clear(c, sponge_color32_make(0xFF000000)); angle += SPEED; float x = sinf(angle); @@ -19,7 +19,7 @@ void draw_frame(sponge_Texture c) { sponge_draw_line( c, - half + (int32_t)( x * (float)half), half + (int32_t)( y * (float)half), - half + (int32_t)(-x * (float)half), half + (int32_t)(-y * (float)half), - 0xFFFF00FF); + sponge_vec2i_make(half + (int32_t)( x * (float)half), half + (int32_t)( y * (float)half)), + sponge_vec2i_make(half + (int32_t)(-x * (float)half), half + (int32_t)(-y * (float)half)), + sponge_color32_make(0xFFFF00FF)); } |
