Color Picker
a tool to get a color based on color palette, also have a method to export to html all the color palette
Example
- generate a complete palette
@palette= ColorPicker::Palette.new(template: :complete)- then you have a complete range of colors
@palette.rgb- You can get a sample color
@palette.sample_color
> #<ColorPicker::Color:0x007f4dc236ac10 @hex_code="000000">- generate a dark palette
@palette.generate(template: :dark)
> [0..7, 0..9, 0..255]Color
*initialize with string or array of rgb number
@color = ColorPicker::Color.new("000000")- initialize with rgb array range
@color = ColorPicker::Color.new([255, 255,255])*converters
@color.to_rgb
@color.to_hex*printers
@color.to_s