Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created May 26, 2022 11:49
Show Gist options
  • Save MartinThoma/0ccff94ac3890a2e2747fd84bfd48861 to your computer and use it in GitHub Desktop.
Save MartinThoma/0ccff94ac3890a2e2747fd84bfd48861 to your computer and use it in GitHub Desktop.
def get_color(i: int) -> Tuple[int, int, int, int]:
r = i % 256
g = 0 # i * 2 % 256
b = i % (256*2)
return (r, g, b, 255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment