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

slippyd-colorist

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slippyd-colorist

  • 0.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
3
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")

== 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 12 Oct 2009

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