From 90d40f283f6e7a8a1c57849841ddee11f362d95e Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 14 Sep 2025 10:14:08 +0200 Subject: refactored everything procrastination experience --- examples/line.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/line.c') 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)); } -- cgit v1.3.1