getAvgHex {FastUtils} | R Documentation |
Compute the Average of Hex Colors
Description
This function computes the average color of the provided hex color values.
Usage
getAvgHex(...)
Arguments
... |
Hex color values as character strings. Could also be any number of character vectors (including lists) which will all be coerced into a single characters, assuming they are valid hex codes. |
Value
A single hex color character representing the average of the input colors.
Source
https://stackoverflow.com/questions/649454
Examples
getAvgHex("#000000", "#FF00FF")
getAvgHex(c("#008040", "#000000", "#FF00FF"))
# very nonstandard but possible way to input hexes. Essentially,
# any combination of vectors will work.
getAvgHex(list("#008040", "#000000"), "#FF00FF", c("#FF00FF"))
[Package FastUtils version 0.1.1 Index]