#🔒 OpenSource script edit

7 messages · Page 1 of 1 (latest)

icy blade
#

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

GitHub

square bounce. Contribute to quasar098/midi-playground development by creating an account on GitHub.

fallow patioBOT
#

@icy blade

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

icy blade
#

B

icy blade
#

U

icy blade
#

M

fallow patioBOT
#

@icy blade

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.