@@ -180,15 +180,15 @@ defmodule Scenic.Color do
180
180
For HSL and HSV, h is a float between 0 and 360, while the s, v and l values
181
181
are floats between 0 and 100.
182
182
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}}` |
192
192
193
193
194
194
## Named Colors
@@ -204,15 +204,16 @@ defmodule Scenic.Color do
204
204
205
205
## Additional Named Colors
206
206
207
- | Name | Value |
208
- |---------------|------------------------|
209
- | `:clear` | `{0x80, 0x80, 0x80, 0x00}` |
207
+ | Name | Value |
208
+ |---------------|----------------------------- |
209
+ | `:clear` | `{0x80, 0x80, 0x80, 0x00}` |
210
210
| `:transparent` | `{0x80, 0x80, 0x80, 0x00}` |
211
211
212
212
## Converting Between Color Formats
213
213
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.
216
217
"""
217
218
218
219
# import IEx
0 commit comments