This page is intended has a number of tests to make sure that MyCanvas handles colors the same as the default canvas. In the canvas on the left, it is believed that every color alternative as demonstrated in the examples on the color() reference page are used for both fill() and stroke(). The 3 different canvas use different ways of specifying the background color.
color(gray, [alpha]) color(v1, v2, v3, [alpha]) color(value) color(values) color(color) | MyCanvas color uses the p5.js color function so any of the ways that one can normally specify a color should work with MyCanvas. |
background(....) | Any of ways that one specifies a color should work. However the image option is not implemented. |
fill(...) | Any of ways that one specifies a color should work. |
noFill() | |
stroke(...) | Any of ways that one specifies a color should work. |
noStroke() | |
strokeWeight(weight) | All widths are set in units of pixels. |
Other methods used: createMyCanvas, background, text, line, and rect. p>
James Brink, 4/30/2020