hii i'm a new user for Processing as an architect and want to create a research within help of Processing. My subject is searching building patterns on a topographic surfaces and want to draw rectangles or squares with a relationship of pixel colours of the image.
as you'll see the dark areas have smaller squares and lighter ones have big squares i want to fill this image with rectangles at any dimension (there must be a max. limit)
i called image but don't know about drawing squares with a relation of pixel colours