I am working on the following code in C. So far, it has worked, and it has been scaled up to the right level, etc., however, I am struggling to make the colors work the way I want. Ideally, I would like to get something like this regardless of color:

however, my program, as it is below, is currently producing something like this:

Therefore, I would appreciate any help I could get to make the colors the way I want.
#include <stdio.h>
Kane source share