Get the name for a hex color. Ruby version.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
lib
spec
vendor/gems/chunky_png
.editorconfig
.gitignore
.rspec
.rubocop.yml
Gemfile
LICENSE
README.md
Rakefile
benchmark.rb
icon.png
info.plist
main.rb

README.md

Alfred Workflow: Color Name (Ruby)

Based on Name that Color. Built as an Alfred workflow for convenience with some tweaks to fit my personal needs.

Choose what to copy

The workflow has the following modifiers:

Modifier Result Example
None SASS variable name $color-dove-gray
⌃ (Control) SASS variable definition $color-dove-gray: #6D6C6C;
⌘ (Cmd) Color hex #6D6C6C
⌥ (Option) Color RGB rgb(109, 108, 108)

Requirements

  • Alfred 3
  • Modern version of Ruby 2.0+ (OS X 10.10 ships with 2.0)

Credits

License

Copyright (c) 2016 Mariano Cavallo. MIT Licensed, see LICENSE for details.