4 ms·
Fun tip: If you have an array of RGB you can shorten that somewhat const color = [254, 134, 29]; ctx.fillStyle = `rgb(${color})`; ctx.fillStyle = `rgba($
by hmry 5y ago
Fun tip: If you have an array of RGB you can shorten that somewhat
const color = [254, 134, 29];
ctx.fillStyle = `rgb(${color})`;
ctx.fillStyle = `rgba(${color},0.5)`; // I use this one pretty often