News for hackers. Stuff that matters.
Re:It's always been you, Canvas2D by hmry on Friday March 04, 2022 @10:25PM (#30563913)
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

There are no comments on this comment yet.