Translate image sampler values into four distinct colour groups

Hello!

I am a new grasshopper user and was trying to translate the values of the image sampler into four distinct ranges (0-0.02), (0.02-0.4), (0.4-0.8), (0.8-1) which would then give a specific triangular tile a corresponding colour.

The issue I’m facing is that some tiles overlap and i have no clue why. so my question is:

  1. Why might these tiles be overlapping?
  2. Is there a way to do this more efficiently?

I saw this forum post that looks very similar to what I’m trying to achieve but I can’t open the attached file nor can I understand the explanation without the command names displayed

Triangle diagram.gh (391.1 KB)

FYI,
ImageDispatch.gh (396.1 KB)

Thank you!

I think I tried something similar but must’ve gotten lost somewhere in the process.

I like to branch them that way:


ImageDispatch_pathsa.gh (410.2 KB)

This allows us to have more control on adding more colors and parameters :clap: :clap: