Skip to content

Instantly share code, notes, and snippets.

@hrj

hrj/reddish Secret

Created April 26, 2012 12:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrj/42e4c4dba6a9a595d473 to your computer and use it in GitHub Desktop.
Save hrj/42e4c4dba6a9a595d473 to your computer and use it in GitHub Desktop.
A reddish filter for Compiz.
!!ARBfp1.0
TEMP tex;
TEX tex, fragment.texcoord[0], texture[0], RECT;
MUL tex, tex, {0.8, 0.6, 0.6, 1.0};
MOV result.color, tex.rgba;
END
@hrj
Copy link
Author

hrj commented Apr 26, 2012

To use this, save this file in a local folder, say as ~/local/compiz/reddish, and configure the color-filter to point to it using the CompizConfig program.

To activate the effect, you can use the keyboard shortcuts defined in the CompizConfig program.

The values in line #4 can be tweaked to get the right color effect. That line specifies the multiplication factor for Red, Green, Blue and Alpha. When the factor is one, that channel remains unchanged. When zero, it is completely filtered out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment