Skip to content

andrejewski/color-me-shocked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color-me-shocked

a better color converter

color-me-shocked screenshot

See Color Me Shocked in Action

Before color-me-shocked, I had to go to Google, type "rgb to hex" or "hex to rgb" or "hsv to cmyk." Then input my value and then hit "convert." That's like 4 steps. 3 steps too many. This got rather tedious and all the flipping back and forth was making me work too hard. With a peaking interest in color theory and a "kill tons of birds with one stone" attitude, I sat down to solve this problem. Simply put, color-me-shocked is a color converter that updates in real-time as you type into multiple color formats all at once. It isn't prefect but it is pretty cool to use and I'm satified with it.

Details

Color-me-shocked supports the following color formats:

  • Hexidecimal
  • RGB (Red-Green-Blue)
  • CMYK (Cyan-Magenta-Yellow-Black)
  • HSV (Hue-Saturation-Value)
  • Custom Formatting

Custom Formating uses %_ to denote color variables. Examples being:

  • #%x which would yield #ffffff
  • rgb(%r,%g,%b) which would yield rgb(255,255,255)
  • %c %m %y %k %h %s %v which would yield something also

Colophon

Color-me-shocked was developed using Backbone.js (and Underscore.js) and Handlebars. It is designed to be run, not only online, but offline. It requires no internet connection. The code is written in CoffeeScript. My reasoning for CoffeeScript is to allow this repository to serve as a learning resource as well as a tool for those who would like to improve it. The color conversion functions are written in a very abstract form (as close to Haskell as I could) as to be reproducible in other languages and just darn better to read.

Thanks for using color-me-shocked. Or for at least reading this far down into the README.

Follow me on twitter and check-out my other repositories if I've earned it.

About

a better color converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published