Golden ratio based color generation.
Go to file
Danila Fedorin 3d9cf7858b Create initial version of shard. 2018-09-18 23:06:12 -07:00
spec Create initial version of shard. 2018-09-18 23:06:12 -07:00
src Create initial version of shard. 2018-09-18 23:06:12 -07:00
.editorconfig Create initial version of shard. 2018-09-18 23:06:12 -07:00
.gitignore Create initial version of shard. 2018-09-18 23:06:12 -07:00
.travis.yml Create initial version of shard. 2018-09-18 23:06:12 -07:00
LICENSE Create initial version of shard. 2018-09-18 23:06:12 -07:00
README.md Create initial version of shard. 2018-09-18 23:06:12 -07:00
shard.yml Create initial version of shard. 2018-09-18 23:06:12 -07:00

README.md

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • DanilaFe Danila Fedorin - creator, maintainer