dictionary:color:adjustcolor
Differences
This shows you the differences between two versions of the page.
dictionary:color:adjustcolor [2023/02/13 14:52] – created - external edit 127.0.0.1 | dictionary:color:adjustcolor [2023/04/08 19:13] (current) – James Sentman | ||
---|---|---|---|
Line 4: | Line 4: | ||
The only adjustment currently supported is for brightness. You can adjust the brightness absolutely or relatively. | The only adjustment currently supported is for brightness. You can adjust the brightness absolutely or relatively. | ||
- | ===Brightness=== | + | ----- |
+ | ====Brightness==== | ||
The optional **brightness** parameter is for absolute color adjustment. It takes a decimal number between 0 and 1 with 1 being full brightness and 0 being black. | The optional **brightness** parameter is for absolute color adjustment. It takes a decimal number between 0 and 1 with 1 being full brightness and 0 being black. | ||
- | ===Brightness By=== | + | ----- |
+ | ====Brightness By==== | ||
The optional **brightness by** parameter is for relative adjustments of color. To brighten a color pass a positive decimal number between 0 and 1. To darken a color pass a negative value between 0 and 1. You cannot brighten a color more than 1 nor darken it to less than 0 but it doesn’t hurt to pass values that would result in that. The color will just be fully bright or fully black as a result. | The optional **brightness by** parameter is for relative adjustments of color. To brighten a color pass a positive decimal number between 0 and 1. To darken a color pass a negative value between 0 and 1. You cannot brighten a color more than 1 nor darken it to less than 0 but it doesn’t hurt to pass values that would result in that. The color will just be fully bright or fully black as a result. | ||
- | + | ----- | |
- | ===Usage: | + | ====Usage:==== |
Absolute setting of a pure red color to 50% brightness. | Absolute setting of a pure red color to 50% brightness. | ||
Line 25: | Line 27: | ||
</ | </ | ||
- | ===History: | + | ----- |
+ | ====History:==== | ||
* Added to XTension in version 9.3.2 | * Added to XTension in version 9.3.2 | ||
dictionary/color/adjustcolor.1676299926.txt.gz · Last modified: 2023/02/13 14:52 by 127.0.0.1