@0b5vr/experimental
    Preparing search index...

    Function range

    • Transform a value from input range to output range.

      This function does NOT clamp the output value.

      This function is inspired by the Processing's map() function.

      Parameters

      • x: number

        value to transform

      • x0: number

        lower edge of the input range

      • x1: number

        upper edge of the input range

      • y0: number

        lower edge of the output range

      • y1: number

        upper edge of the output range

      Returns number