From 89162a2e733fdca7733a0ce57c610461baf2dfaa Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Tue, 31 Oct 2023 14:05:14 -0600 Subject: changed gyro color --- src/gyroscope.c | 2 +- src/gyroscope.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gyroscope.c b/src/gyroscope.c index eb34e11..9db82e6 100644 --- a/src/gyroscope.c +++ b/src/gyroscope.c @@ -63,7 +63,7 @@ void drawGyroscope(Game * game, Gyroscope * gyroscope) { EndTextureMode(); // Draw render texture. - DrawTextureV(gyroscope->texture.texture, gyroscope->position, WHITE); + DrawTextureV(gyroscope->texture.texture, gyroscope->position, GYROSCOPE_TEXTURE_COLOR); // Top to bottom. DrawLineEx( diff --git a/src/gyroscope.h b/src/gyroscope.h index 6a86e11..7aa2612 100644 --- a/src/gyroscope.h +++ b/src/gyroscope.h @@ -6,6 +6,7 @@ #define GYROSCOPE_LINE_THICKNESS 2.0 #define GYROSCOPE_TEXTURE_SIZE 80 #define GYROSCOPE_CAMERA_DISTANCE 3.0 +#define GYROSCOPE_TEXTURE_COLOR (Color){0xff, 0xff, 0xff, 0xcd} // The gyroscope is rended in 3d but not in the main scene. // We use a render texture to get the gyroscope render onto the screen. -- cgit v1.2.3