makeColour | R Documentation |
Create a single colour from depthmapX's palettes.
makeDepthmapClassicColour(value, rangeMin = 0, rangeMax = 1)
makeAxmanesqueColour(value, rangeMin = 0, rangeMax = 1)
makePurpleOrangeColour(value, rangeMin = 0, rangeMax = 1)
makeBlueRedColour(value, rangeMin = 0, rangeMax = 1)
makeGreyScaleColour(value, rangeMin = 0, rangeMax = 1)
makeNiceHSBColour(value, rangeMin = 0, rangeMax = 1)
value |
Value within the min/max range to take |
rangeMin |
The min value of the range |
rangeMax |
The max value of the range |
Returns a single colour.
makeDepthmapClassicColour(0.2, 0, 1)
makeAxmanesqueColour(0.2, 0, 1)
makePurpleOrangeColour(0.2, 0, 1)
makeBlueRedColour(0.2, 0, 1)
makeGreyScaleColour(0.2, 0, 1)
makeNiceHSBColour(0.2, 0, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.