Skip to content

Commit

Permalink
Update canvas_flame.R
Browse files Browse the repository at this point in the history
  • Loading branch information
koenderks committed Oct 7, 2022
1 parent 8abf71e commit 81e1d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/canvas_flame.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ canvas_flame <- function(colors, background = "#000000",
))
}

.scaleColorChannels <- function(canvas){
.scaleColorChannels <- function(canvas) {
hits <- which(canvas[, , 1] > 0)
scaling <- log(canvas[, , 1][hits]) / canvas[, , 1][hits]
canvas[, , 2][hits] <- canvas[, , 2][hits] * scaling
Expand Down

0 comments on commit 81e1d09

Please sign in to comment.