Pixels from Image

Hello everyone.

I am trying to set the circles diameter according to the color values of an image. Plenty of tutorials out there and that’s how I learned it.

However I would like to set those diameters from the dark values rather than the brightness. That way my circles will be smaller on the brightest areas.

How can I achieve this? Thank you.

Find the largest radius, then simple maths:

maxRadius - radius = Inverted radius (so black = larger, white = smaller)

*radius = your current radius values

Nice!

That worked just great

Now I would like to remap my values in order to avoid 0 Diameter (Coming from 0 Brightness from the Black color)

I managed with List.Map to add a +0.1 to any value, however I would like to remap all my values from 0.1 to 3. I tried with Math.RemapRange but something weird happens with the circles, is like if they mirrored.

Can you preview the output from the reverse te values node and the math.remap range node?

You mean this?

It seems my 2500 values are divided into 50 sublists.
But is the same for the first example, with the List.Map node, and that one works fine.