convert.js
function draw(c, frame)
{
    const pixels = frame.data
    for (let y = 0; y < frame.height; y++)
    {
        for (let x = 0; x < frame.width; x++)
        {
            const color = pixels[x + y * frame.width]
            if (typeof color !== 'undefined')
            {
                let hex = color.toString(16)
                while (hex.length < 6)
                {
                    hex = '0' + hex
                }
                c.fillStyle = '#' + hex
                c.beginPath()
                c.fillRect(x, y, 1, 1)
            }
        }
    }
}
function draw(c, frame)
{
    const pixels = frame.data
    for (let y = 0; y < frame.height; y++)
    {
        for (let x = 0; x < frame.width; x++)
        {
            const color = pixels[x + y * frame.width]
            if (typeof color !== 'undefined')
            {
                let hex = color.toString(16)
                while (hex.length < 6)
                {
                    hex = '0' + hex
                }
                c.fillStyle = '#' + hex
                c.beginPath()
                c.fillRect(x, y, 1, 1)
            }
        }
    }
}
function draw ( c , frame ) { const pixels = frame . data for ( let y = 0 ; y < frame . height ; y ++ ) { for ( let x = 0 ; x < frame . width ; x ++ ) { const color = pixels [ x + y * frame . width ] if ( typeof color !== 'undefined' ) { let hex = color . toString ( 16 ) while ( hex . length < 6 ) { hex = '0' + hex } c . fillStyle = '#' + hex c . beginPath ( ) c . fillRect ( x , y , 1 , 1 ) } } } }
used by RenderSheet to render the frame
@private
@param {CanvasRenderingContext2D} c
@param {object} frame
used by RenderSheet to render the frame