colors and gradients
This is a library focused on working with colors and gradients. At this stage it allows you to create an RGB gradient.
This shard now features 100% test coverage
Add this to your application's
dependencies: colors: github: dscottboggs/colors-and-gradients
require "colors" include Colors red = Color.red green = Color.new red: 0, green: 0xFF, blue: 0 gray = Color.gray 0x55 color_based_on_percent = Gradient.new :red, :green, 100 color = color_based_on_percent # => Color red: 127, green: 127, blue: 0 color.to_s # => "#7F7F00"
Full documentation can be found here
It's crystal, just check out the repo.
- Fork it (https://github.com/dscottboggs/colors/fork)
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request
- dscottboggs D. Scott Boggs - creator, maintainer