0.0
No commit activity in last 3 years
No release in over 3 years
a tool to get a color based on color palette, also have a method to export to html all the color palette
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

Color Picker

Build Status Coverage Status 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