We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
can you also show an example with changing the color palette for the stream?
Thanks a lot.
Best regards kami
The text was updated successfully, but these errors were encountered:
Sorry this fell through the cracks. You can use a palette to colorize the image as follows. For example to use the rainbow palette.
At the top of the demo include the palette
from palettes import rainbow_palette
Then index the palette when building the image. Replace
if val > 255: a[r, c] = [255, 255, 255] else: a[r, c] = [val, val, val]
with
if val > 255: a[r, c] = rainbow_palette[255] else: a[r, c] = rainbow_palette[val]
Sorry, something went wrong.
No branches or pull requests
Hi,
can you also show an example with changing the color palette for the stream?
Thanks a lot.
Best regards kami
The text was updated successfully, but these errors were encountered: