Created
September 8, 2015 08:08
-
-
Save sergeant-wizard/09d8dcac3e01468b39e0 to your computer and use it in GitHub Desktop.
rgb to hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[254, 253, 3].map { |v| v.to_s(16).rjust(2, '0') }.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment