mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
19 lines
823 B
Plaintext
19 lines
823 B
Plaintext
{
|
|
"name": "lighter",
|
|
"type": "function",
|
|
"groups": ["Color"],
|
|
"description": "Returns a lighter (or darker) color string",
|
|
"arguments": [{
|
|
"arg": "color",
|
|
"description": "a color string"
|
|
}, {
|
|
"arg": "factor",
|
|
"description": "an integer corresponding to the lightening factor:<ul><li>if the factor is greater than 100, this function returns a lighter color (e.g., setting factor to 150 returns a color that is 50% brighter);</li><li>if the factor is less than 100, the return color is darker, but using the darker() function for this purpose is recommended;</li><li>if the factor is 0 or negative, the return value is unspecified.</li></ul>"
|
|
}],
|
|
"examples": [{
|
|
"expression": "lighter('200,10,30', 200)",
|
|
"returns": "'255,158,168,255'"
|
|
}],
|
|
"tags": ["darker", "color", "lighter"]
|
|
}
|