Simple Question: Color a Box with Gradient


I’m using a definition that i’ve found in internet to practice with a brick wall.

Right now i’m having trouble in understanding the function of gradient and how to color a wall.

This is what i want to achieve

This is what i’ve got, i don’t know what i’m doing wrong that i can’t make it.

Sorry for the inconvenience, i’m really new in Grasshopper and just starting to comprehend the params and how they work.

Thanks in advance for your help.

Here’s the file. (29.7 KB)

Doing a little debugging helps. The Color Gradient component converts a list of numbers to colors. How it does this depends on the constraints L0 and L1. Typically you are coloring based on some property t which has been derived from the definition or generated in some manner. In your case, these values are not so useful:

It seems t should based on the position of the brick: (30.2 KB)

Thanks for post it !