# `BB.Dsl.Color`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/dsl/color.ex#L5)

A color

# `t`

```elixir
@type t() :: %BB.Dsl.Color{
  __identifier__: any(),
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  alpha: number(),
  blue: number(),
  green: number(),
  red: number()
}
```

# `validate`

```elixir
@spec validate(any()) :: {:ok, number()} | {:error, String.t()}
```

Validate a color channel value (must be between 0 and 1)

---

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