Log in

View Full Version : "Colors" filter at avisynth.org


hartford
22nd September 2006, 04:02
I've been looking at "Colors" filter at avisynth.org and I'm puzzled.

There appeares to me to be two incompatible statements:

"In all cases the color should be specified in RGB format..."

and

"the red channel value is multiplied by 65536, the green channel value is multiplied by 256 and the two resulting products are both added to the blue channel value."

Is that RGB?

I post this because I'm experimenting. This doesn't fit my understanding of RGB.

I'm attempting to add borders to a video with a rgb color of "16."
the Wiki isn't helpful; or, as many suspect, I'm stupid.

Thanks in advance for any help.

foxyshadis
22nd September 2006, 04:55
Ignore that, and specify color in hex. ie, red: $FF0000. The method suggested is a way to translate that into decimal, but it's been unnecessary for a long time now. I'll update the wiki docs.

oh, nm, it's already removed from the current one: http://www.avisynth.org/mediawiki/wiki/Colors It could probably stand to be written a bit more clearly, I'll look at that.

Fizick
22nd September 2006, 04:58
It is simply a way to write 3 bytes (R,G,B, every from 0 to 255) in one integer number for storing.
It is internal representation of RGB in many software.

Wilbert
24th September 2006, 21:24
Hmm, thx for mentioning this. I forgot to correct http://www.avisynth.org/mediawiki/wiki/Colors. I also clarified it.