Description Usage Arguments Value Author(s) Examples
These functions simply extact information about a given color or vector of colors, given either as names (e.g. "red") or hex codes (e.g. "FF0000")
1 2 3 4 | GetOpacity(color)
GetHue(color)
GetSaturation(color)
GetValue(color)
|
color |
A color or vector of colors |
Numeric value(s) between 0 and 1, with the same length as color
Brody Sandel
1 2 3 | GetValue("red")
GetOpacity("blue")
GetHue(rainbow(100))
|
v
1
alpha
1
[1] 0.000000000 0.009803922 0.020261438 0.030065359 0.039869281 0.050326797
[7] 0.060130719 0.069934641 0.079738562 0.090196078 0.100000000 0.109803922
[13] 0.120261438 0.130065359 0.139869281 0.149673203 0.160130719 0.169934641
[19] 0.179738562 0.190196078 0.200000000 0.209803922 0.220261438 0.230065359
[25] 0.239869281 0.249673203 0.260130719 0.269934641 0.279738562 0.290196078
[31] 0.300000000 0.309803922 0.320261438 0.330065359 0.339869281 0.350326797
[37] 0.360130719 0.369934641 0.379738562 0.390196078 0.400000000 0.409803922
[43] 0.420261438 0.430065359 0.439869281 0.450326797 0.460130719 0.469934641
[49] 0.479738562 0.490196078 0.500000000 0.509803922 0.520261438 0.530065359
[55] 0.539869281 0.550326797 0.560130719 0.569934641 0.579738562 0.590196078
[61] 0.600000000 0.609803922 0.620261438 0.630065359 0.639869281 0.650326797
[67] 0.660130719 0.669934641 0.679738562 0.690196078 0.700000000 0.709803922
[73] 0.720261438 0.730065359 0.739869281 0.750326797 0.760130719 0.769934641
[79] 0.779738562 0.790196078 0.800000000 0.809803922 0.820261438 0.830065359
[85] 0.839869281 0.849673203 0.860130719 0.869934641 0.879738562 0.890196078
[91] 0.900000000 0.909803922 0.920261438 0.930065359 0.939869281 0.950326797
[97] 0.960130719 0.969934641 0.979738562 0.990196078
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.