-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
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
Using _256_palette to print in 256 colors? #45
Comments
Assuming you are running a terminal that is capable of handling 256 colours, you just use the indices for the colour you want from the palette. For example, if you want a pale yellow use 229. You can find the complete colour scheme here: https://en.m.wikipedia.org/wiki/File:Xterm_256color_chart.svg. If you're having problems getting 256 colours, have a look at the troubleshooting guide on this subject. |
Oh whaat? that was easy...I was trying to call _256_palette directly but that was just a list of rgb at each step and didn't know how to combine them. Probably due to my own lack of understanding with printing in 256 colors. Probably will dive deeper into how you're rendering it from the 256 palette, but any good resources to understand colors in terminal? I've basically ported over this project using asciimatics, just need to add some finishing touches |
@imdaveho The palette is only used for image to text conversion, using PIL. That's why it's this format - it's the one used by PIL. As for general guides to terminals? You might want to look at xterm and see how it works. The FAQ might be a good start. But if you just want to know about colours, see here. |
@dho825 Did that answer your question too? |
Thanks Peter, you can close this ticket :) On Sep 20, 2016 12:21 PM, "peterbrittain" notifications@github.com wrote:
|
How can this be achieved without using Rainbow or FigletText and only using screen.paint or screen.print with color maps?
The text was updated successfully, but these errors were encountered: