Skip to content

Allow option passing to defined custom palettes #21

@jfairbank

Description

@jfairbank

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions