We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5742a6e commit e6129d5Copy full SHA for e6129d5
js/blocks/SensorsBlocks.js
@@ -732,6 +732,10 @@ function setupSensorsBlocks(activity) {
732
* @returns {Uint8ClampedArray} - The RGBA values of the pixel.
733
* @throws {Error} - If the canvas context is unavailable.
734
*/
735
+ /**
736
+ * Gets pixel color data from the main drawing canvas at specified coordinates.
737
+ * Currently only works with turtle-drawn content on overlayCanvas.
738
+ */
739
getPixelData(x, y) {
740
const canvas = docById("overlayCanvas");
741
const ctx = canvas?.getContext("2d");
0 commit comments