weasel API - v0.8.0
    Preparing search index...

    Interface PressureToWidthOptions

    Options for pressureToWidth.

    interface PressureToWidthOptions {
        gamma?: number;
        maxWidth?: number;
        minWidth?: number;
    }
    Index

    Properties

    gamma?: number

    Response curve exponent applied to pressure before lerping (p ** gamma). 1 = linear; >1 emphasizes light touches (sharper thin → thick transition); <1 emphasizes heavy touches. Default 1.6, a small bias toward heavy strokes that matches typical pencil feel without crushing the dynamic range.

    maxWidth?: number

    Width returned at pressure 1. Default 6.

    minWidth?: number

    Width returned at pressure 0. Default 0.5.