# `Linocut.Palette`
[🔗](https://github.com/jaman/cauldron/blob/v0.1.3/linocut/lib/linocut/palette.ex#L1)

Colour specifications and the named colours a picture may use.

    Linocut.Palette.color("#c33")      # => {204, 51, 51, 255}
    Linocut.Palette.color(:cyan)       # => {0, 255, 255, 255}
    Linocut.Palette.color({1, 2, 3})   # => {1, 2, 3, 255}

# `spec`

```elixir
@type spec() ::
  String.t()
  | atom()
  | {0..255, 0..255, 0..255}
  | {0..255, 0..255, 0..255, 0..255}
```

# `color`

```elixir
@spec color(spec()) :: {0..255, 0..255, 0..255, 0..255}
```

The `{r, g, b, a}` a specification means. Raises `ArgumentError` for one it cannot read.

# `names`

```elixir
@spec names() :: [atom()]
```

Every named colour.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
