Coder Social home page Coder Social logo

Comments (5)

peterbrittain avatar peterbrittain commented on August 25, 2024

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.

from asciimatics.

imdaveho avatar imdaveho commented on August 25, 2024

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

from asciimatics.

peterbrittain avatar peterbrittain commented on August 25, 2024

@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.

from asciimatics.

peterbrittain avatar peterbrittain commented on August 25, 2024

@dho825 Did that answer your question too?

from asciimatics.

imdaveho avatar imdaveho commented on August 25, 2024

Thanks Peter, you can close this ticket :)

On Sep 20, 2016 12:21 PM, "peterbrittain" [email protected] wrote:

@dho825 https://github.com/dho825 Did that answer your question too?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#45 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANV4g4HZUunybGHULkHGna1PtdhgFphLks5qsAf3gaJpZM4KABmk
.

from asciimatics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.