From 990adfe2c2c43257c16db6b26b4e7f67eefe6001 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 4 Mar 2023 10:29:48 +0100 Subject: [PATCH] Documentation update. --- CHANGELOG.md | 2 +- THEMES-DEV.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1938a11b..51871e78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -138,7 +138,7 @@ Overall application speed and performance has been greatly improved with faster * Greatly improved the performance of shader post-processing such as scanlines and blur rendering * Greatly improved application startup speed by avoiding a lot of unnecessary SVG rasterizations * Implemented dynamic texture allocation to the font code to reduce memory usage and avoid missing glyphs -* Added support for changing font texture saturation +* Added support for changing the saturation for font textures * Large optimizations to the text wrapping code (generallly 300-400% faster) * Added support for linear interpolation for font texture magnifications * Added support for texture mipmapping with trilinear filtering diff --git a/THEMES-DEV.md b/THEMES-DEV.md index 72cbc5318..307065568 100644 --- a/THEMES-DEV.md +++ b/THEMES-DEV.md @@ -2033,6 +2033,16 @@ Properties: - Valid values are `nearest` or `linear` - Default is `nearest` - This property can only be used for GIF animations. +* `color` - type: COLOR + - Applies a color shift to the animation by multiplying each pixel's color by this color value. For example, an all-white animation with `FF0000` applied would become completely red. You can also control the transparency of the animation by setting the value to for example `FFFFFFAA`. This keeps all pixels at their normal color and only affects the alpha channel. This property is applied after `saturation` so by setting that property to `0` it's possible to colorize rather than color shift. + - Default is `FFFFFFFF` (no color shift applied) +* `colorEnd` - type: COLOR + - Works in the exact same way as `color` but can be set as the end color to apply a color shift gradient. + - Default is the same value as `color` +* `gradientType` - type: STRING + - The direction to apply the color shift gradient if both `color` and `colorEnd` have been defined. + - Valid values are `horizontal` or `vertical` + - Default is `horizontal` * `brightness` - type: FLOAT - Controls the relative level of brightness. This is intended primarily for fine adjustments. - Minimum value is `-2` and maximum value is `2`