build/browser/index.js
/**
     * Creates the Turtle Primitive.
     * All points lie in the the plane z = 0.
     * The height and width of the triangle are centered on the origin (0, 0).
     * The height and width range from -1 to +1.
     * @hidden
     */
Creates the Turtle Primitive.
All points lie in the the plane z = 0.
The height and width of the triangle are centered on the origin (0, 0).
The height and width range from -1 to +1.
@hidden
Creates the Turtle Primitive . All points lie in the the plane z = 0 . The height and width of the triangle are centered on the origin ( 0 0 ) . The height and width range from - 1 to + 1 . @hidden
function primitive(options) {
        var values = transform([CENTER, LEFT, CENTER, TAIL, NOSE, LLEG, NOSE, RLEG, LLEG, RLEG], options).reduce(concat);
        var result = {
            mode: exports.BeginMode.LINES,
            attributes: {}
        };
        result.attributes[GraphicsProgramSymbols.ATTRIBUTE_POSITION] = { values: values, size: 3 };
        return result;
    }
function primitive ( options ) { var values = transform ( [ CENTER , LEFT , CENTER , TAIL , NOSE , LLEG , NOSE , RLEG , LLEG , RLEG ] , options ) . reduce ( concat ) ; var result = { mode : exports . BeginMode . LINES , attributes : { } } ; result . attributes [ GraphicsProgramSymbols . ATTRIBUTE_POSITION ] = { values : values , size : 3 } ; return result ; }
Creates the Turtle Primitive.
Creates the Turtle Primitive .
// The following points define lines by being taken in pairs.