randomly colored squares in glsl sandbox?

edited November 2018 in GLSL / Shaders

I have the code in the sandbox <--click where I create areas on the screen which are regions of different colors using a random number generator. The problem I have is that the regions are evaluated for a wide range of colors instead, giving a flickering static look instead of a defined color. Any ideas on how a specific region such as the top left square end up with only a single color and the rest are also randomly chosen; only once though?

Sign In or Register to comment.