Tones Generator Mix Gray Percent

Construct gamma-sRGB tone ladder toward caller neutral gray rather than assuming 50% gray, with explicit fractions; not subtractive ink or paint mixing.

Description

A tone ladder mixes a base color toward a caller-selected neutral gray.

A tone ladder mixes a base color toward a caller-selected neutral gray. Encoded-channel mixing is not pigment mixing.1

Enter normalized RGB, gray fraction 0–1 and 1–128 tone fractions 0–1. Return RGB rows in the supplied fraction order.

When to use Tones Generator Mix Gray Percent

Use Tones Generator Mix Gray Percent when you need to evaluate the supplied records under the calculation and evidence rules below. No subtractive mixing, linear-light blending or uniform perceptual spacing is 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 Tones Generator Mix Gray Percent 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 baseRgb, grayEncodedLevel, toneFractions using the field table and calculation rules, then run the tool.
  3. Read toneRgbRows. 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
baseRgbBase rgblist of numberRequired
grayEncodedLevelGray encoded levelnumberRequired
toneFractionsTone fractionslist of numberRequired

Enter normalized RGB, gray fraction 0–1 and 1–128 tone fractions 0–1. Return RGB rows in the supplied fraction order.

tone=(1−fraction)×base+fraction×gray

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
toneRgbRowsTone rgb rowslist of list of number
json
{
  "input": {
    "baseRgb": [
      1,
      0,
      0
    ],
    "grayEncodedLevel": 0.5,
    "toneFractions": [
      0,
      0.5,
      1
    ]
  },
  "output": {
    "toneRgbRows": [
      [
        1,
        0,
        0
      ],
      [
        0.75,
        0.25,
        0.25
      ],
      [
        0.5,
        0.5,
        0.5
      ]
    ]
  }
}

Limitations and assumptions

No subtractive mixing, linear-light blending or uniform perceptual spacing is inferred.

Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.

Alternative or Complementary methods

Use Color Shade and Tint Generator: Tint and shade ladders mix toward white and black respectively. The declared method operates on encoded sRGB. For a complementary task, use Monochrome Lightness Steps Generator: An HSL monochrome ramp keeps hue and saturation fixed while varying lightness. Endpoint order may ascend or descend.

References

  1. Tones Generator Mix Gray Percent — tool.io

Similar or alternative tools

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