Skip to content
Permalink
Browse files

Update darker function description

  • Loading branch information
DelazJ authored and nyalldawson committed Jul 3, 2020
1 parent 0876bae commit ecb617cfa078bd9b8d2e19f19f0ace7ebc9329f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 resources/function_help/json/darker
@@ -5,7 +5,7 @@
"description": "Returns a darker (or lighter) color string",
"arguments": [
{"arg":"color", "description":"a color string"},
{"arg":"factor", "description":"a integer number corresponding to the darkening factor:<ul><li>if the factor is greater than 100, this functions returns a darker color (for e.g., setting factor to 300 returns a color that has one-third the brightness);</li><li>if the factor is less than 100, the return color is lighter, but using the lighter() function for this purpose is recommended;</li><li>if the factor is 0 or negative, the return value is unspecified.</li></ul>"}
{"arg":"factor", "description":"an integer corresponding to the darkening factor:<ul><li>if the factor is greater than 100, this functions returns a darker color (e.g., setting factor to 300 returns a color that has one-third the brightness);</li><li>if the factor is less than 100, the return color is lighter, but using the lighter() function for this purpose is recommended;</li><li>if the factor is 0 or negative, the return value is unspecified.</li></ul>"}
],
"examples": [ { "expression":"darker('200,10,30',300)", "returns":"'66,3,10,255'"}]
}

0 comments on commit ecb617c

Please sign in to comment.
You can’t perform that action at this time.