Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kmandrup-colorist

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kmandrup-colorist

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
4
Created
Source

= Colorist

Colorist is a library built to handle the conversion, comparison, and manipulation of colors in Ruby projects with an emphasis on W3C standards and CSS-style hex notation. See the Color class for additional details on the available methods.

== Example

require 'colorist' include Colorist

gray = Color.new(0x333333) gray + gray # => #<Color #666666> gray - "#333" # => #<Color #000000>

gray.invert # => #<Color #cccccc> gray.brightness # => 0.2

gray.contrast_with("#f00")

== Installation

First, make sure you have GemCutter set up: gem install gemcutter gem tumble

Then, grab the gem: gem install slippyd-colorist

Last, add the requirement to your project and enjoy!

in environment.rb, after "Rails::Initializer.run do |config|":

config.gem 'slippyd-colorist', :lib => false, :version => '0.0.5'

in any class or module that you want to use Colorist:

include Colorist

== Resources

  • GitHub Source: http://github.com/mbleigh/colorist
  • Lighthouse (for bugs): http://mbleigh.lighthouseapp.com/projects/15686-colorist

Copyright (c) 2008 Michael Bleigh and Intridea, Inc. Released under the MIT open source license.

FAQs

Package last updated on 29 May 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc