ColorDivider
Find the color that's between two other hex colors.
Install
gem install color_divider
Usage
require 'color_divider'
color_divider = ColorDivider.new("#000000", "#FFFFFF")
color_divider.start_color #=> "#000000"
color_divider.end_color #=> "#FFFFFF"
color_divider.middle_color #=> "#808080
Related Gems
- RgbToHexColor - Convert rgb colors into hex colors.
- HexToRgb - Convert hex colors into rgb colors.
Development
Install
gem install --dev color_divider
Specs
The default Rake task is to run the specs.
rake
License
MIT