Golden ratio based color generation.
spec | ||
src | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
shard.yml |
golden-color
A simple shard to generate colors using the golden ratio method.
Installation
Add this to your application's shard.yml
:
dependencies:
golden-color:
git: https://dev.danilafe.com/DanilaFe/golden-color
Usage
The first step to using golden-color is to create a color generator. The saturation and value parameters can be used to ajust the colors that are produced. Additionally, the seed parameter can be modified to change the starting hue. Colors can then be generated by repeated calls to "generate".
require "golden-color"
generator = GoldenColor::ColorGen.new saturation: 0.5, value: 0.95
color = generator.generate
Contributing
- Fork it
- 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
Contributors
- DanilaFe Danila Fedorin - creator, maintainer