jfairbank / chroma

Ruby gem for color manipulation and palette generation
ISC License
232 stars 29 forks source link

Allow option passing to defined custom palettes #21

Open jfairbank opened 9 years ago

jfairbank commented 9 years ago

At minimum need to support the :as option.

Chroma.define_palette :dynamic_palette do |opts|
  spin opts[:angle] || 90
end

'red'.paint.foo(angle: 60, as: :rgb)