The problem I have is that the Render / Simple spectrum analyzer in the background isn't divided into 8-10 neat vertical bars. Some of the wider bars that I am choosing to show are nearly filled with the spectrum analyzer, while some have two or three pixels extending far above the others. Here's a picture of what I have currently:
http://www.fileden.com/files/18968/p...20spectrum.bmp
I want to level these off so they don't have irregular tops. The way I think I could do this would be to take the first column in each of the 10 sections. For each pixel in this column, copy it to the 7 pixels to the right. This will make an eight pixel wide column that is one solid color, which is what I want. I don't know how to actually copy the pixels to the right though. A formula that I think could work would be something like this:
This will set the variable "offset" to the remainder of the x coordinate divided by 8. (Now that I think about it - where is the origin in rectangular coordinate mode? I may have to modify this to be abs(x%8)=offset.)
x%8=offset
red=(if(abs(equal(offset,0)-1),red(x-offset),red(x)));
blue=(if(abs(equal(offset,0)-1),blue(x-offset),blue(x)));
green=(if(abs(equal(offset,0)-1),green(x-offset),green(x)));
This will next check the value of abs(equal(offset,0)-1. If offset is nonzero (the X coordinate is one of the first columns in the large sections that I'm looking for,) this will return 1. If offset is 0(the X coordinate is to the right of one of the first columns,) this will return 0.
The rest of this code section will replace the color values of pixel x with those of x - offset. Here's my problem. I don't know the syntax for this. So can anyone help me by showing me exactly how I can copy the colors from one pixel to another?
Thanks,
Isaac
*edit* uploaded .avs file to here