SixArm.com » Ruby » Colorful generates simple random color names and shade names
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.codeclimate/badges
.yardoc
bin
doc
lib
test
.codeclimate.yml
.document
.gemtest
.gitattributes
.gitignore
.rspec
.travis.yml
CHANGES.md
CONTRIBUTING.md
Gemfile
LICENSE.md
README.md
Rakefile
VERSION
sixarm_ruby_colorful-1.1.2-sha512.txt
sixarm_ruby_colorful-1.1.2.gem
sixarm_ruby_colorful.gemspec

README.md

SixArm.com → Ruby →
Colorful gem generates simple random color names and shade names

Gem Version Build Status Code Climate Maintainability Coverage Status

Introduction

Color names and shades that generate simple random color names.

Based on the NBS/ISCC Color System, The Universal Language of Color.

See http://www.anthus.com/Colors/NBS.html

For docs go to http://sixarm.com/sixarm_ruby_colorful/doc

Want to help? We're happy to get pull requests.

Install

Gem

Run this command in your shell or terminal:

gem install sixarm_ruby_colorful

Or add this to your Gemfile:

gem 'sixarm_ruby_colorful'

Require

To require the gem in your code:

require 'sixarm_ruby_colorful'

Examples

Colorful.choice => Light Red
Colorful.colors.choice => Red
Colorful.shades.choice => Light

Colors and Shades

Colors available: Red, Orange, Yellow, Green, Blue, Indigo, Violet Cyan, Magenta, Pink, Purple, Brown, Gold, Silver, Bronze, Copper, Platinum, Aquamarine, Azure, Beige, Cerulean, Chartreuse, Crimson, Fucshia, Khaki, Maroon, Mauve, Scarlet, Sepia, Sienna, Tan, Teal, and Turquoise

Shades available: Brilliant, Bright, Dark, Deep, Light, Moderate, Pale, Vivid