You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this in the todo list and thought I'd give it a go. I wrote some classes to quickly generate the correct color values for the HUE. I'll post the pull request in a but for review but basically its implemented like this:
Calling RGB.new(123,231,222).to_hue, HexRGB.new("7BD5DE").to_hue or HSL.new(185.45, 0.60, 0.67).to_hue will return a hash containing the integer values for the HUE color like {:hue=>33760, :saturation=>153, :luminance=>172}
The text was updated successfully, but these errors were encountered:
hersha
pushed a commit
to hersha/hue
that referenced
this issue
Aug 7, 2013
Implements Issue soffes#6
These classes allow you to generate the HUE color values from 3 different formats.
RGB.new(123,231,222).to_hue
HexRGB.new("7BD5DE").to_hue
HSL.new(185.45, 0.60, 0.67).to_hue
They each return a hash in the format of: {:hue=>33760, :saturation=>153, :luminance=>172}
Implements Issue soffes#6
These classes allow you to generate the HUE color values from 3 different formats.
RGB.new(123,231,222).to_hue
HexRGB.new("7BD5DE").to_hue
HSL.new(185.45, 0.60, 0.67).to_hue
They each return a hash in the format of: {:hue=>33760, :saturation=>153, :luminance=>172}
I saw this in the todo list and thought I'd give it a go. I wrote some classes to quickly generate the correct color values for the HUE. I'll post the pull request in a but for review but basically its implemented like this:
Calling
RGB.new(123,231,222).to_hue
,HexRGB.new("7BD5DE").to_hue
orHSL.new(185.45, 0.60, 0.67).to_hue
will return a hash containing the integer values for the HUE color like{:hue=>33760, :saturation=>153, :luminance=>172}
The text was updated successfully, but these errors were encountered: