From 13b7dc4401074ba15c592e1196e4e83e86388883 Mon Sep 17 00:00:00 2001 From: Martin Griffin Date: Tue, 30 Dec 2025 19:39:09 +0000 Subject: [PATCH] Document UpdateLegendaryMarkingColor (#2221) --- src/title_screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/title_screen.c b/src/title_screen.c index 1d605d1fc0..829361bcb8 100644 --- a/src/title_screen.c +++ b/src/title_screen.c @@ -858,10 +858,10 @@ static void UpdateLegendaryMarkingColor(u8 frameNum) { if ((frameNum % 4) == 0) // Change color every 4th frame { - s32 intensity = Cos(frameNum, 128) + 128; - s32 r = 31 - ((intensity * 32 - intensity) / 256); - s32 g = 31 - (intensity * 22 / 256); - s32 b = 12; + s32 intensity = Cos(frameNum, Q_8_8(0.5)) + Q_8_8(0.5); + u32 r = 31 - Q_8_8_TO_INT(intensity * 31); + u32 g = 31 - Q_8_8_TO_INT(intensity * 22); + u32 b = 12; u16 color = RGB(r, g, b); LoadPalette(&color, BG_PLTT_ID(14) + 15, sizeof(color));