I've looked into the code of these actions but I can't get my head around it. Stuff like this doesn't make much sense to me:
Code: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 0 0 0.588 0 0 0 0 1 0 0 0 0 1 0
Code: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 0 0 0.588 0 0 0 0 1 0 0 0 0 1 0
This should be the correct one ( Red to Blue ):ryberg wrote:I know there are several ways to do this, but I would like to create an action like the "Tint Blue" brush and "All Blue" action.
I've looked into the code of these actions but I can't get my head around it. Stuff like this doesn't make much sense to me:I'd like it to work like the "All Blue" action above, only it just turns red into blue and not black, so red becomes blue and black stays blackCode: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 0 0 0.588 0 0 0 0 1 0 0 0 0 1 0
Code: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0
Code: Select all
R
r g b a k
0 0 1 0 0
Code: Select all
R
r g b a k
1 0 0 0 0
Code: Select all
R G B A
r g b a k r g b a k r g b a k r g b a k
0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0
Code: Select all
R = 255 G = 100 B = 255 A = 255
Code: Select all
R
r g b a k
0 1 0 0 50
Code: Select all
R
r g b a k
0 1 0 0 -50
Code: Select all
R G B A
r g b a k r g b a k r g b a k r g b a k
0 1 0 0 50 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0
Code: Select all
R = 150 G = 100 B = 255 A = 255
Thank you Madsmadsjuul wrote:Great explanation Eric. I put it into the wiki.
-Mads
Code: Select all
R = 255 G = 0 B = 0 A = 255
Code: Select all
R = 0 G = 150 B = 255 A = 255
Code: Select all
0 0.588 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0
Code: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0.588 1 0 0 0 1 0 1 0 0 0 0 0 1 0
This is not working because you applied your modification on the Red Channel (the first 5 numbers group).ryberg wrote: So I am thinking this:Code: Select all
0 0.588 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0
ZigOtto wrote:Code: Select all
tv_cmd Heads tv_pixelmatrix 0 0 0 0 0 0.588 1 0 0 0 1 0 1 0 0 0 0 0 1 0