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