Thresholds color animations (Bozza) |
|
|
These [JSup Animations|animations] (for both [JSup line color|line]/[JSup fill color|fill] colors) define numeric [JSup tag|tag]/expression whose value is compared with a value/[JSup paints|paint] table to find which is the [JSup paints|paint] to be used.
At [JSup runtime|runtime], for a value x of the [JSup Code|code], the [JSup paints|paint] will be chosen so x will be between the paint value and the next paint value.
In details, the rules used to choose the are:
- The value/[JSup paints|paint] table is always sorted from lower to higher values.
- The value/[JSup paints|paint] table is scanned from the top (lowest value) to the bottom (highest value).
- During the scan a [JSup paints|paint] is chosen if its value is <= of x and the next value in the table is > of x (or there are no more table rows).
- If x is < of the first value of the table (the smallest), than no paint will be used (transparent object [JSup line color|line]/[JSup fill color|fill]).
|