View Single Post
Old 03-28-2018, 11:08 AM   #18
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 7,571
Default

Simple Invert color code

//Invert Color
src=0;

input_info(src,w,h) ? ( project_w=w; project_h=h; ); // preserve input dimensions
gfx_blit(src);
gfx_set(1,1,1,-1,0x80003);
gfx_mode=19;
colorspace == 'RGBA' ? colorspace='YV12';
gfx_fillrect(0,0,project_w,project_h);

-----

used on a track it will invert all layers below
used on a video item it will invert only that item
used on an empty MIDI item above other items it will invert all layers for length of item.
You can use built-in "Item fades affect video" after to transition, bit ugly though.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote