Hey, at start i want to say that I have 0 knowledge so idk if i should be posting here but someone told me that people might be willing to help me.
So there is a program: https://github.com/quasar098/midi-playground/blob/master/docs/SONGS.md
All it makes is creating bouncing square that supose to bounce synchronized to music from midi file. It also leave color trail on walls after bounce called "pegs". With chatgpt I managed to change square color, bounce, or even some glowing effects. But I'm stuck at point where i need to synchronize Glowing color with pegs color changing every bounce.
world.py = file Change pegs color
Setting random colors for the generated pegs
self.colors = [random.choice([(255, 153, 0)]) for _ in self.future_bounces]
return safe_areas
glowing.py Change glowing color
def make_glowy2(size, color, intensity=0) -> pygame.Surface:
image = np.zeros((*size[::-1], 3), dtype=np.uint8)
border = glowing_border(image.copy(), color=(107, 204, 57), thickness=intensity)
return pygame.surfarray.make_surface(np.fliplr(np.rot90(border, k=-1)))
By default this glowing is avaiable only in modern_dark theme and is only in grey color. In my version i changed it so it can be used in every theme and every single color.
All i need is -- Synchronize glow color so it will always be same as trail it leaves on wall, but changing every bounce to diffrent one. Is there anyone willing to help me? Thanks a lot