I am doing some code in p5.js in javascript and I would like to know if there is a way to upload an image and create vectors (with createVector) where there is a black dot in the uploaded image.
I hope there is a way because I'm searching the internet and I can't find anything.
SOLVED
By doing a loadPixels() I can tell if the RGBA colors are 50 or less, to create a vector at their position: