Terminal ANSI-16 Pastel Theme Generator

Transform all sixteen caller ANSI palette slots by encoded white blend, no hidden default theme or automatic contrast guarantee.

Description

Terminal ANSI-16 Pastel Theme Generator: return pastel srgb slots.

An ANSI-16 theme assigns colors to sixteen terminal slots. Mixing those colors toward white can make a pastel variant while preserving slot order.

This tool returns pastel srgb slots. Use the stated units and model convention when interpreting these fields.

When to use this tool

Use this tool when the supplied inputs match the specific operation described above and you need a repeatable result under its stated convention.

  • Check the supported input and output contract against an existing calculation or observation.
  • Use the complete example to confirm units, selector spelling and result interpretation.

How to use the tool and how it works

  1. Enter every field in the input table using the stated units and the exact supported selector spelling where applicable.
  2. Run the tool. Correct input errors before interpreting an output.
  3. Read the result fields below; use accompanying flags and the stated sign, boundary or model convention when interpreting a number.

Require sixteen normalized sRGB triplets and a blend fraction in [0,1]. For every encoded channel v, return v+(1-v) times the blend fraction.1

Input fieldMeaning and unitsAccepted input
callerAnsi16SrgbCaller ansi16 srgb.Matrix of finite numbers
whiteBlendFractionWhite blend fraction. Fractional units; 0.2 means 20%.Finite number; from zero to one inclusive
Output fieldInterpretation
resultObject containing the following named result fields.
result.pastelSrgbSlotsPastel srgb slots list, in the ordering described in the calculation.
json
{
  "input": {
    "callerAnsi16Srgb": [
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ],
      [
        0,
        0,
        0
      ]
    ],
    "whiteBlendFraction": 0.5
  },
  "output": {
    "result": {
      "pastelSrgbSlots": [
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ],
        [
          0.5,
          0.5,
          0.5
        ]
      ]
    }
  }
}

Limitations and assumptions

  • The operation blends encoded channels rather than linear light and does not ensure terminal contrast or readability.
  • Every declared field is required and unexpected fields are rejected. Numeric inputs must be finite; input errors are distinct from a valid false result or an explicitly qualified output.
  • Extremely large inputs and nonfinite or excessively large outputs are rejected. List positions reported by the tool use zero-based indices unless stated otherwise.

Alternative or Complementary methods

Check the underlying observations, units and conventions independently before using the result in a larger workflow. The tools listed below address nearby tasks; compare their inputs and scope before substituting one for this operation.

References

  1. Tool behavior and example: Terminal ANSI-16 Pastel Theme Generator — tool.io

Similar or alternative tools

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