get

When used with 2 parameters the get(x, y) works correctly although inefficiently - it should not be used in a loop. The larger blue rectangle got its color using get(15, 15) and the yellow circle got its color using get(5, 7). The two argument version was used extensively in sketch.html

But I don't understand what is going on in the other two canvases. The middle canvas should be a copy of the left one with using a no argument get(). The wording "no arguments" was added after the image was pasted. The 4 argument get(0, 0, 100, 60) should have copied the top 60% of the 1st canvas but again only copied an early version of it, not the final one.

Unfortunately, there I could not find examples with no or 4 arguments so I don't really know if the implimentation should be valid.

The p5js code get.pjs.

James Brink, 6/29/2020