A Hubot script that convert the color code to rgb, hsl, and hex format.
$ npm install git://github.com/bouzuya/hubot-color.git
or
$ # TAG is the package version you need.
$ npm install 'git://github.com/bouzuya/hubot-color.git#TAG'
bouzuya> hubot help color
hubot> hubot color - convert the color code to rgb, hsl, and hex format
bouzuya> hubot color green
hubot> color green is rgb(0, 128, 0), hsl(120, 100%, 25%), #008000.
bouzuya> hubot color #4e6a41
hubot> color #4e6a41 is rgb(78, 106, 65), hsl(101, 24%, 34%), #4e6a41.
bouzuya> hubot color rgb(78, 106, 65)
hubot> color rgb(78, 106, 65) is rgb(78, 106, 65), hsl(101, 24%, 34%), #4e6a41.
See src/scripts/color.coffee
for full documentation.
$ npm test
$ npm run robot