Sublime Forum

Playing with color schemes

#1

Hi there!

I’m trying to write ST3 plugin which would gradually iterate through the colors of the current color scheme in the real time to take my work little ‘higher’. I’ve already written part of parsing the current user scheme and changing its colors, but today I’ve found some strange hex values in some schemes.

Usually colors are specified like “#AABBCC”, or “#AABBC” (which I think stands for “#AABB0C”, or how to parse it other way?), but some I’ve found today in the default Monokai scheme were a “#9D550FB0” (activeGuide) or “#F8F8F2A5” (bracketsForeground). So I don’t really know what to do with the fourth value. Is it kind of CMYK value or what?

Does anybody know how ST interpretes such values?

0 Likes

#2

one set of digits is an alpha value: http://stackoverflow.com/questions/5445085/understanding-colors-in-android-6-characters

1 Like

#3

Wow, thanks! Would try to work with this :slight_smile:

0 Likes