-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new: mixRGB()
for additive color mixing
#62
Conversation
#' @title Colormixing in RGB space | ||
#' @description | ||
#' Vectorized additive mixing of colors in RGB space. | ||
#' @param c1,c2 Colors 1 and 2. Accepts vector of hex color codes or an rgb matrix |
Check notice
Code scanning / lintr
Lines should not be more than 80 characters. This line is 82 characters. Note
#' par(bg = "black") | ||
#' | ||
#' # plot input color vectors | ||
#' plot(seq(255), y = rep(2, 255), col = a, pch = 15, ylim = c(0, 3), bg = "black") |
Check notice
Code scanning / lintr
Lines should not be more than 80 characters. This line is 83 characters. Note
|
||
#' @rdname mixRGB | ||
#' @export | ||
mixRGB <- function(c1, c2, output = c("hex", "rgb")) { |
Check notice
Code scanning / lintr
Variable and function name style should match snake_case or symbols. Note
|
||
grDevices::rgb(t(rgbm_adj)) | ||
} | ||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
grDevices::rgb(t(rgbm_adj)) | ||
} | ||
|
||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
} | ||
|
||
|
||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
|
||
|
||
|
||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
|
||
|
||
|
||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
|
||
|
||
|
||
|
Check notice
Code scanning / lintr
Trailing blank lines are superfluous. Note
No description provided.