Midpoint Color Linear Interpolation RGB

Component midpoint in declared encoded normalized RGB coordinates, not linear-light or perceptual interpolation.

Description

Midpoint Color Linear Interpolation RGB: return encoded rgb midpoint.

A midpoint in encoded RGB is a coordinate average. It differs from a midpoint formed after converting to linear light.

This tool returns encoded rgb midpoint. 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 two normalized sRGB triplets and average corresponding encoded channels.1

Input fieldMeaning and unitsAccepted input
encodedRgbAEncoded rgb a.List of finite numbers
encodedRgbBEncoded rgb b.List of finite numbers
Output fieldInterpretation
resultObject containing the following named result fields.
result.encodedRgbMidpointEncoded rgb midpoint list, in the ordering described in the calculation.
json
{
  "input": {
    "encodedRgbA": [
      1,
      0,
      0
    ],
    "encodedRgbB": [
      0,
      0,
      1
    ]
  },
  "output": {
    "result": {
      "encodedRgbMidpoint": [
        0.5,
        0,
        0.5
      ]
    }
  }
}

Limitations and assumptions

  • The result does not use linear-light interpolation or a perceptual color space.
  • 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: Midpoint Color Linear Interpolation RGB — tool.io

Similar or alternative tools

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