Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Stream

Build Status Hex Version

Generate random colors in a pleasing way, based on work from the ColorGenerator Ruby gem, and the How to Generate Random Colors Programmatically post by Martin Ankerl.

Installation

Add color_stream to your list of dependencies in mix.exs:

def deps do
  [{:color_stream, "~> 0.0.1"}]
end

Basic Usage

iex> ColorStream.hex |> Enum.take(5)
["7F6C3F", "5A3F7F", "3F7F47", "7F3F4A", "3F5D7F"]

iex> ColorStream.hex(hue: 0.5) |> Enum.take(2)
["F1BE42", "8B42F1"]

Be sure to read the documentation too.

About

Generated colors using Elixir streams.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages