Skip to content

Commit b5cb53e

Browse files
committed
Other small updates
1 parent 301015a commit b5cb53e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

lib/scenic/color.ex

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ defmodule Scenic.Color do
180180
For HSL and HSV, h is a float between 0 and 360, while the s, v and l values
181181
are floats between 0 and 100.
182182
183-
| Format | Implicit | Explicit |
184-
|---------------|------------------------|-----------|
185-
| Named Color | *na* | See the Named Color Table |
186-
| Grayscale | `g` | `{:g, g}` |
187-
| Gray, Alpha | `{g, a}` | `{:g, {g, a}}` |
188-
| Red, Green, Blue | `{r, g, b}` | `{:rgb, {r, g, b}}` |
189-
| Red, Green, Blue, Alpha | `{r, g, b, a}` | `{:rgba, {r, g, b, a}}` |
190-
| Hue, Saturation, Value | *na* | `{:hsv, {h, s, v}}` |
191-
| Hue, Saturation, Lightness | *na* | `{:hsl, {h, s, l}}` |
183+
| Format | Implicit | Explicit |
184+
|----------------------------|----------------|---------------------------|
185+
| Named Color | *na* | See the Named Color Table |
186+
| Grayscale | `g` | `{:g, g}` |
187+
| Gray, Alpha | `{g, a}` | `{:g, {g, a}}` |
188+
| Red, Green, Blue | `{r, g, b}` | `{:rgb, {r, g, b}}` |
189+
| Red, Green, Blue, Alpha | `{r, g, b, a}` | `{:rgba, {r, g, b, a}}` |
190+
| Hue, Saturation, Value | *na* | `{:hsv, {h, s, v}}` |
191+
| Hue, Saturation, Lightness | *na* | `{:hsl, {h, s, l}}` |
192192
193193
194194
## Named Colors
@@ -204,15 +204,16 @@ defmodule Scenic.Color do
204204
205205
## Additional Named Colors
206206
207-
| Name | Value |
208-
|---------------|------------------------|
209-
| `:clear` | `{0x80, 0x80, 0x80, 0x00}` |
207+
| Name | Value |
208+
|---------------|-----------------------------|
209+
| `:clear` | `{0x80, 0x80, 0x80, 0x00}` |
210210
| `:transparent` | `{0x80, 0x80, 0x80, 0x00}` |
211211
212212
## Converting Between Color Formats
213213
214-
By using the functions `to_g`, `to_ga`, `to_rgb`, `to_rgb`, `to_hsl`, and `to_hsv`
215-
you can convert between any implicit or explicit color type to any explicit color type.
214+
By using the functions `to_g/1`, `to_ga/1`, `to_rgb/1`, `to_rgb/1`,
215+
`to_hsl/1`, and `to_hsv/1` you can convert between any implicit or explicit
216+
color type to any explicit color type.
216217
"""
217218

218219
# import IEx

0 commit comments

Comments
 (0)