From f87fe218d074610504f34b132024acd3584c6291 Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Tue, 25 Mar 2025 13:54:16 -0400 Subject: [PATCH] fix colors --- conf/cars_alongside.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/cars_alongside.lua b/conf/cars_alongside.lua index 65343e1..7871d6e 100644 --- a/conf/cars_alongside.lua +++ b/conf/cars_alongside.lua @@ -23,7 +23,7 @@ while(i <= proxcars and rightsideset == false) do color_perct = simdata.pd[i].radius/10 yellow = math.floor(color_perct * 255) - local rgb = (0 << 24) | (yellow << 16) | (255 << 8) + local rgb = (255 << 16) | (yellow << 8) | (0 << 0) if simdata.pd[1].theta >= 90 then -- car is behind set_led_range_to_rgb_color(right_leds_start, right_leds_start + litleds, rgb) @@ -46,7 +46,7 @@ while(i <= proxcars and leftsideset == false) do color_perct = simdata.pd[i].radius/10 yellow = math.floor(color_perct * 255) - local rgb = (0 << 24) | (yellow << 16) | (255 << 8) + local rgb = (255 << 16) | (yellow << 8) | (0 << 0) if simdata.pd[1].theta <= 270 then -- car is behind set_led_range_to_rgb_color(left_leds_start, left_leds_start + litleds, rgb)