Gradient Stop Even Spacing Count
Build bounded endpoint-inclusive gradient stop positions in explicit percentage units; repeated coincident stops are permitted, color interpolation/hard-stop semantics are not guessed.
Description
Even gradient-stop positions include both endpoints.
Even gradient-stop positions include both endpoints. Equal endpoints deliberately produce coincident stops.1
Enter ordered percentages 0–100 and integer count 2–128. Return equally spaced positions, explicitly preserving the final endpoint, and interval percentage.
When to use Gradient Stop Even Spacing Count
Use Gradient Stop Even Spacing Count when you need to evaluate the supplied records under the calculation and evidence rules below. No colors, interpolation space or hard-stop semantics are inferred.
Prepare colors in the stated color space and scale. Use encoded RGB fractions, linear RGB, Lab, xy, byte values or ink percentages exactly as requested; supply caller tolerances and reference conditions.
How to use Gradient Stop Even Spacing Count and understand its results
- Prepare colors in the stated color space and scale. Use encoded RGB fractions, linear RGB, Lab, xy, byte values or ink percentages exactly as requested; supply caller tolerances and reference conditions.
- Enter startStopPercent, endStopPercent, stopCount using the field table and calculation rules, then run the tool.
- Read evenGradientStopPercents, intervalPercent. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| startStopPercent | Start stop percent | number | Required |
| endStopPercent | End stop percent | number | Required |
| stopCount | Stop count | number | Required |
Enter ordered percentages 0–100 and integer count 2–128. Return equally spaced positions, explicitly preserving the final endpoint, and interval percentage.
spacing=(end−start)/(count−1) Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| evenGradientStopPercents | Even gradient stop percents | list of number |
| intervalPercent | Interval percent | number |
{
"input": {
"startStopPercent": 10,
"endStopPercent": 90,
"stopCount": 3
},
"output": {
"evenGradientStopPercents": [
10,
50,
90
],
"intervalPercent": 40
}
} Limitations and assumptions
No colors, interpolation space or hard-stop semantics are inferred.
Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Monochrome Lightness Steps Generator: An HSL monochrome ramp keeps hue and saturation fixed while varying lightness. Endpoint order may ascend or descend. For a complementary task, use Tones Generator Mix Gray Percent: A tone ladder mixes a base color toward a caller-selected neutral gray. Encoded-channel mixing is not pigment mixing.
References
-
Gradient Stop Even Spacing Count — tool.io
Similar or alternative tools
- Monochrome Lightness Steps Generator
An HSL monochrome ramp keeps hue and saturation fixed while varying lightness. Endpoint order may ascend or descend.
- Tones Generator Mix Gray Percent
A tone ladder mixes a base color toward a caller-selected neutral gray. Encoded-channel mixing is not pigment mixing.