plasma-arc / constants.js
p3nGu1nZz's picture
move to constants
aaffc16
raw
history blame
437 Bytes
// constants.js
export const CANVAS = document.createElement('canvas');
export const CTX = CANVAS.getContext('2d');
export const COLORS = [
[1, 1, 0, 1],
[0, 1, 1, 1],
[1, 0, 1, 1],
[1, 0, 0, 1],
[0, 0.5, 1, 1]
];
export const RENDER_PASS_DESCRIPTOR = {
label: 'canvas render pass',
colorAttachments: [{
clearValue: [0.3, 0.3, 0.3, 1],
loadOp: 'clear',
storeOp: 'store',
}],
};