rmapi-js
    Preparing search index...

    Interface NewStroke

    a stroke to draw; every field is the caller's, as the tablet would write it

    interface NewStroke {
        color: number;
        colorRgba?: number;
        encoding?: PointEncoding;
        pen: number;
        points: Float32Array;
        startingLength?: number;
        thicknessScale?: number;
    }
    Index
    color: number

    the color code, named by Color

    colorRgba?: number

    the color as 0xAARRGGBB

    encoding?: PointEncoding

    how to store the points; "packed", the tablet's own, if omitted, which keeps speed and width as 16-bit integers and direction and pressure as bytes

    pen: number

    the pen code, named by Pen

    points: Float32Array

    the points in order, POINT_FIELDS numbers each: x, y, speed, width, direction, pressure

    startingLength?: number

    the length at which the stroke starts; 0 if omitted

    thicknessScale?: number

    the width, scaled; 1 if omitted