packages/canvas/canvas-renderer/src/utils/canUseNewCanvasBlendModes.js
function createColoredCanvas(color)
{
    const canvas = document.createElement('canvas');

    canvas.width = 6;
    canvas.height = 1;

    const context = canvas.getContext('2d');

    context.fillStyle = color;
    context.fillRect(0, 0, 6, 1);

    return canvas;
}
function createColoredCanvas(color)
{
    const canvas = document.createElement('canvas');

    canvas.width = 6;
    canvas.height = 1;

    const context = canvas.getContext('2d');

    context.fillStyle = color;
    context.fillRect(0, 0, 6, 1);

    return canvas;
}
function createColoredCanvas ( color ) { const canvas = document . createElement ( 'canvas' ) ; canvas . width = 6 ; canvas . height = 1 ; const context = canvas . getContext ( '2d' ) ; context . fillStyle = color ; context . fillRect ( 0 , 0 , 6 , 1 ) ; return canvas ; }
Creates a little colored canvas

@ignore
@param {string} color - The color to make the canvas
@return {canvas} a small canvas element
Creates a little colored canvas