• Stars
    star
    133
  • Rank 270,840 (Top 6 %)
  • Language
    Ruby
  • License
    Other
  • Created almost 16 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Color tools for Ruby.

Color

home

github.com/halostatue/color

code

github.com/halostatue/color

bugs

github.com/halostatue/color/issues

rdoc

rubydoc.info/github/halostatue/color

continuous integration

<img src=“https://travis-ci.org/halostatue/color.png” />

test coverage

<img src=“https://coveralls.io/repos/halostatue/color/badge.png” alt=“Coverage Status” />

Description

Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace manipulation support to applications that require it. It also provides 152 named RGB colours (184 with spelling variations) that are commonly supported in HTML, SVG, and X11 applications. A technique for generating monochromatic contrasting palettes is also included.

The Color library performs purely mathematical manipulation of the colours based on colour theory without reference to colour profiles (such as sRGB or Adobe RGB). For most purposes, when working with RGB and HSL colour spaces, this won’t matter. Absolute colour spaces (like CIE L*a*b* and XYZ) and cannot be reliably converted to relative colour spaces (like RGB) without colour profiles.

Color 1.8 adds an alpha parameter to all #css_rgba calls, fixes a bug exposed by new constant lookup semantics in Ruby 2, and ensures that Color.equivalent? can only be called on Color instances.

Barring bugs introduced in this release, this (really) is the last version of color that supports Ruby 1.8, so make sure that your gem specification is set properly (to ~> 1.8) if that matters for your application. This version will no longer be supported one year after the release of color 2.0.

History

Color is the result of a project merge between color.rb 0.1.0 by Matt Lyon and color-tools 1.3 by Austin Ziegler. Please see History.txt for details on the changes this merge brings.

Color::Palette::MonoContrast was developed based on techniques described by Andy “Malarkey” Clarke, implemented in JavaScript by Steve G. Chipman at SlayerOffice and by Patrick Fitzgerald of BarelyFitz in PHP.

1

www.stuffandnonsense.co.uk/archives/creating_colour_palettes.html

2

slayeroffice.com/tools/color_palette/

3

www.barelyfitz.com/projects/csscolor/

:include: Code-of-Conduct.rdoc

:include: Contributing.rdoc

:include: Licence.rdoc

More Repositories

1

diff-lcs

Generate difference sets between Ruby sequences.
Ruby
286
star
2

rubypython

An in-process between Ruby and Python 2.
Ruby
254
star
3

coredata-easyfetch

A fast fetch based on example code by Matt Gallagher
Objective-C
81
star
4

text-hyphen

Text::Hyphen will hyphenate words using modified versions of TeX hyphenation patterns.
Ruby
48
star
5

minitar

Minimal pure-ruby support for POSIX tar(1) archives.
Ruby
38
star
6

fish-docker

Docker and Docker Compose completions for the Fish Shell
Shell
37
star
7

fish-macos

MacOS functions for Fish
Shell
25
star
8

transaction-simple

Transaction::Simple for Ruby
Ruby
19
star
9

fish-rust

Rust/Cargo configuration for Fish
Shell
15
star
10

dotfiles

Dotfiles for 2023, Managed with chezmoi
Shell
12
star
11

fish-haskell

Haskell configuration for Fish
Shell
10
star
12

fish-go

Golang configuration discovery for Fish
Shell
10
star
13

fish-brew

Homebrew utility functions for Fish
Shell
9
star
14

fish-direnv

A very basic direnv configuration for fish
Shell
9
star
15

i18n-tasks-csv

Ruby
8
star
16

xcode-git-version

A script that I use for versioning builds using git. Supports both sharef and version-tag numbering.
Ruby
7
star
17

dsym-archiver

A simple bash script to archive your .dSYM bundles. Based originally on http://furbo.org/stuff/dSYM_Archive.txt.
7
star
18

fish-elixir

Fish meets Elixir
Shell
7
star
19

fish-fzf

FZF Helpers for Fish
Shell
6
star
20

minitest-bonus-assertions

Useful Minitest assertions, and assertions for testing Minitest assertions
Ruby
6
star
21

fish-utils

Fish utility functions
Shell
6
star
22

stockpile

Stockpile: a cache connection manager
Ruby
5
star
23

agio

Pure Ruby HTML to Markdown Converter
Ruby
4
star
24

zsh-focused-dotfiles

Shell
3
star
25

text-formatting

Text Formatting tools for Ruby
Ruby
3
star
26

fish-utils-net

Network fish utilities
Shell
3
star
27

ruwiki

Ruwiki. This is a dead project and is only preserved for historical reasons.
Ruby
3
star
28

text-reform

Text::Reform reformats text according to formatting picture templates.
Ruby
2
star
29

fish-ssh-agent

SSH agent initialization for Fish
Shell
2
star
30

terraform-modules

Useful modules for Terraform
HCL
2
star
31

vim-config

My new vim config.
Vim Script
2
star
32

minitar-cli

Ruby minitar command-line tool
Ruby
2
star
33

fish-battery

Battery function for Fish - deprecated
Shell
2
star
34

kx

Elixir Version Manager
Shell
2
star
35

vuex-notes

Learn vuex with a notes app, based on a Coligo tutorial and updated for vue2 and vuex2
JavaScript
2
star
36

jruby-vijava

A simple wrapper around the VMware Infrastructure (vSphere) Java API for use with JRuby.
Ruby
2
star
37

fish-utils-core

Core fish utilities
Shell
2
star
38

rails-ansible-presentation

The Deckset presentation on Rails + Ansible
2
star
39

stockpile-redis

A Redis backend for stockpile (https://github.com/halostatue/stockpile).
Ruby
2
star
40

uninheritable

Sample code demontrating how to make a class uninheritable in Ruby
Ruby
1
star
41

canonical-attributes

Ruby
1
star
42

fish-dict

Dictionary functions for fish shell
Shell
1
star
43

vim-hz

Newer vim configurations
Vim Script
1
star
44

what-gem-why-gem-how-gem

Why build gems and how to build gems, presented for RailsGirls T.O. on 24 November 2015 at the Kinetic Cafe office
1
star
45

fisher-plugin

A template for making new fisher-compatible fish plugins
Makefile
1
star
46

sqltoy_elixir

Elixir
1
star
47

tex-hyphen

A port of Perl's TeX::Hyphen to Ruby 1.6/1.8. This project has been superseded by Text::Hyphen
Ruby
1
star
48

poole

Ruby
1
star
49

gh-merge-upstream

A helper for gh cli to keep forks up-to-date
Shell
1
star
50

text-format

The text-format gem for Ruby, modernized and available on GitHub.
Ruby
1
star