Commit 6dec6535 authored by Nicolas Lenz's avatar Nicolas Lenz

Update palette

parent 830529d8
Pipeline #733 passed with stages
in 32 seconds
......@@ -5,10 +5,10 @@ This is an R script that generates my color palette (one orange, one a complemen
The colors, translated into RGB color space and in HTML notation:
Orange palette: \
`#660000, #820000, #a10000, #c02b00, #da4e00, #e97300, #f59300, #ffb100, #ffcd5e, #ffe58d, #fff8b1`
`#630000, #7c0000, #9a0000, #b92c00, #d64b00, #ed6c00, #fb8e00, #ffad00, #ffca00, #ffe34d, #fff77a`
Blue palette: \
`#191228, #2b253c, #403854, #564c6e, #6c6189, #82789e, #9890b0, #afa8c2, #c5c0d5, #dcd8e7, #f2effa`
`#19112a, #2c243d, #403854, #554c6d, #6c6188, #8377a1, #998fb4, #afa7c6, #c6bfd9, #ddd8ed, #f3eeff`
The palette is built based on smooth run through the [HCL](https://en.wikipedia.org/wiki/HCL_color_space) color model in [CIELUV](https://en.wikipedia.org/wiki/CIELUV) color space. That means that the color transition in the palette should be perceptually uniform. Both color palettes also match each other in brightness.
......
......@@ -4,8 +4,8 @@ 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(276,2), c=c(9,33,8), l=c(7,95), power=c(1.15,1.05))
primary <- sequential_hcl(n, h=c(5, 70), c=c(90,162,85), l=c(10,98), power=c(1.1,1.2))
secondary <- sequential_hcl(n, h=rep(276,2), c=c(10,34,13), 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=", "))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment