ApplesauceOS
Read Markdown ↗Download .md

getColors

Sample several pixels from a single capture.

js
getColors(locations)

Arguments

ArgumentTypeMeaning
locationsarray[{x,y}, ...] or [[x,y], ...].

Returns

Array of color objects in input order; same invalid-value convention as getColor.

Example

js
console.log(getColors([[100, 100], [120, 100]]));

All JavaScript APIs · Automation playbook