Skip to content

Commit

Permalink
Move to Lab space for discrete fira colour scales
Browse files Browse the repository at this point in the history
Lab space is perceptually better.
  • Loading branch information
vankesteren authored Jul 11, 2019
1 parent abb7536 commit 2721af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/colours.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @export
firaPalette <- function(n = 5) {
if (n == 4) return(firaCols[c(1, 3, 4, 5)])
grDevices::colorRampPalette(firaCols)(n)
grDevices::colorRampPalette(firaCols, space = "Lab")(n)
}

#' Fira theme colours
Expand Down

0 comments on commit 2721af5

Please sign in to comment.