Const
🎨 RGB colors have components r/red, g/green, b/blue, and a/alpha.
r
red
g
green
b
blue
a
alpha
By default when a canvas is using the HDR "display-p3" color space, rgb colors are mapped to the full P3 gamut, even when they use the legacy integer 0-255 format.
await Canvas(200, 100);colorMode(RGB);background(1, 0, 0); Copy
await Canvas(200, 100);colorMode(RGB);background(1, 0, 0);
🎨 RGB colors have components
r/red,g/green,b/blue, anda/alpha.By default when a canvas is using the HDR "display-p3" color space, rgb colors are mapped to the full P3 gamut, even when they use the legacy integer 0-255 format.