@rekurt/openkline - v0.2.0
    Preparing search index...

    Interface CandleVertexData

    Vertex buffers for one frame of candles, ready to be uploaded straight to a WebGL ARRAY_BUFFER. Both arrays are tightly packed and parallel — positions[2*v], positions[2*v+1] is vertex v's (x, y) in PIXELS, and colors[3*v .. 3*v+2] is the same vertex's RGB in the 0..1 range.

    vertexCount is the number of vertices (not floats); pass it directly to gl.drawArrays(gl.TRIANGLES, 0, vertexCount).

    interface CandleVertexData {
        colors: Float32Array;
        positions: Float32Array;
        vertexCount: number;
    }
    Index

    Properties

    colors: Float32Array
    positions: Float32Array
    vertexCount: number