Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Documents and Graphics
Palette
Commits
3809f577
Commit
3809f577
authored
Mar 09, 2019
by
Nicolas Lenz
Browse files
R file to generate palettes
parent
654fc857
Changes
1
Hide whitespace changes
Inline
Side-by-side
palette.r
0 → 100644
View file @
3809f577
library
(
"colorspace"
)
n
<-
11
# Number of colors in each palette
primary
<-
sequential_hcl
(
n
,
h
=
c
(
5
,
70
),
c
=
c
(
90
,
160
,
55
),
l
=
c
(
12
,
98
),
power
=
c
(
1.1
,
1.2
))
secondary
<-
sequential_hcl
(
n
,
h
=
rep
(
266
,
2
),
c
=
c
(
8
,
32
,
6
),
l
=
c
(
7
,
95
),
power
=
c
(
1.15
,
1.05
))
#background <- sequential_hcl(n, c=0, l=c(3,97), power=1)
primary_str
<-
tolower
(
paste
(
primary
,
collapse
=
", "
))
secondary_str
<-
tolower
(
paste
(
secondary
,
collapse
=
", "
))
specplot
(
rgb
=
TRUE
,
primary
,
secondary
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment