-
Notifications
You must be signed in to change notification settings - Fork 14
/
_pkgdown.yml
72 lines (67 loc) · 2.38 KB
/
_pkgdown.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
destination: docs
url: https://farver.data-imaginist.com
authors:
Thomas Lin Pedersen:
href: https://data-imaginist.com
template:
params:
bootswatch: paper
navbar:
left:
- icon: fa-home fa-lg
href: index.html
- text: Reference
href: reference/index.html
- text: News
menu:
- text: "Release notes"
- text: "Version 2.0.0"
href: https://www.data-imaginist.com/2019/the-colour-of-everything/
- text: "------------------"
- text: "Change log"
href: news/index.html
right:
- icon: fa-github fa-lg
href: https://github.com/thomasp85/farver
reference:
- title: Colour space conversion
desc: >
This is the raison d'être of the package. Take a matrix or data frame with
colour channels in the columns, and convert it from one colour space to
another. Channels are automatically capped if they have defined bounds, and
any `NaN`, `NA`, `Inf`, or `-Inf` values in the input will result in a row
of `NA` values in the output.
contents:
- convert_colour
- title: Colour comparison
desc: >
Getting a numeric value describing the distance between two colours is not a
trivial task, and several metrics have been devised for that. farver
supports a range of these, and allows you to compare colours in any space
with each others.
contents:
- compare_colour
- title: Converting to and from colour strings
desc: >
The native format of colours in R (and other languages) is often hexadecimal
encoded rgb values (`#RRGGBB`). farver provides utilities for easily going
back and forth between this and any colour space.
contents:
- encode_colour
- decode_colour
- title: Colour string manipulation
desc: >
As colours are often encoded as strings, manipulation of individual channels
requires decoding. and then encoding. farver does away with that by
providing a range of functions for directly manipulating channels in colour
strings.
contents:
- set_channel
- title: Converting to and from native colour representation
desc: >
Under the hood, R encodes colours as integers, with the 32 bit in the
integer divided beetween red, green, blue, and alpha, giving them 8 bit (or
256 values) each. farver provides a simple and fast way of converting
between the native integer representation and the string representation.
contents:
- encode_native