Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artemeff/colos
Converting ruby strings to colors, just for fun
https://github.com/artemeff/colos
Last synced: about 2 months ago
JSON representation
Converting ruby strings to colors, just for fun
- Host: GitHub
- URL: https://github.com/artemeff/colos
- Owner: artemeff
- License: mit
- Created: 2013-01-15T06:27:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-19T16:33:49.000Z (over 11 years ago)
- Last Synced: 2024-03-15T04:09:23.924Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 152 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# colos
[![Gem version](https://badge.fury.io/rb/colos.png)](https://rubygems.org/gems/colos)
[![Build Status](https://secure.travis-ci.org/artemeff/colos.png)](https://travis-ci.org/artemeff/colos)Convert ruby string to color.
### Install
gem install colos
### Usage
```ruby
require 'colos'Colos.color "test" # => "924436"
Colos.color "greenish" # => "9bc63b"
Colos.color "ruby" # => "da9535"
Colos.color "colos" # => "642fa7"
```### Copyright
Copyright (c) 2012 Yuri Artemev. See LICENSE.txt for further details.