Paste just the objects you want into the canvas, take the snapshot, then sample the pixels. e.g.
-> Paste object Sprite with effects
-> Save snapshot
-> Wait for previous actions to complete
-> Log in console: DrawingCanvas.SnapshotRedAt(0, 0) & " " & DrawingCanvas.SnapshotGreenAt(0, 0) & " " & DrawingCanvas.SnapshotBlueAt(0, 0) & " " & DrawingCanvas.SnapshotAlphaAt(0, 0)
Have a look at these 4 expressions: SnapshotRedAt(x, y), SnapshotGreenAt(x, y), SnapshotBlueAt(x, y), SnapshotAlphaAt(x, y). Those expressions combined pick the colour of an exact point.
You can access/modify pixel data through events. Read the "Pixel manipulation with snapshots" section of the documentation: construct.net/en/make-games/manuals/construct-3/plugin-reference/drawing-canvas.
Member since 22 Mar, 2022