Open hadley opened 6 years ago
Since crayon
interpolates the colors, ansi_to_html
does the same. So you typically don't get the same RGB color back.
I used a free color theme to generate the RGB numbers, but this one seems to be quite far indeed. Will check.
https://github.com/rtomayko/bcat/blob/master/lib/bcat/ansi.rb and https://github.com/rburns/ansi-to-html/blob/master/src/ansi_to_html.js are two packages in other languages doing this same conversion. Might be worth comparing their values to what we are using.
Also here are the color translations that the IDE uses for each 256 color code for each theme in the IDE.
Generates http://www.color-hex.com/color/ff87ff not http://www.color-hex.com/color/ffa500