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

  1. 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.
  2. Enter startStopPercent, endStopPercent, stopCount using the field table and calculation rules, then run the tool.
  3. Read evenGradientStopPercents, intervalPercent. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. 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 fieldMeaningValue type; see rules belowRequirement
startStopPercentStart stop percentnumberRequired
endStopPercentEnd stop percentnumberRequired
stopCountStop countnumberRequired

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 fieldMeaningValue type
evenGradientStopPercentsEven gradient stop percentslist of number
intervalPercentInterval percentnumber
json
{
  "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

  1. Gradient Stop Even Spacing Count — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies