aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-10-31 14:05:14 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-10-31 14:05:14 -0600
commit89162a2e733fdca7733a0ce57c610461baf2dfaa (patch)
treeaa409befeb08cc53d797ecbef6dc1dffa6839ad9
parent8f5f51cee013d5c1b9ad629c00aaf08a4572b332 (diff)
changed gyro color
-rw-r--r--src/gyroscope.c2
-rw-r--r--src/gyroscope.h1
2 files changed, 2 insertions, 1 deletions
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.