View Single Post
Old 03-28-2018, 02:23 PM   #21
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,737
Default

You don't need mode 19 to invert, could do (also works in 5.78 etc):

Code:
input=0;
input_info(input,w,h)==0 ? ( w=project_w;h=project_h; );
gfx_img_resize(-1,w,h);
gfx_set(1);
gfx_fillrect(0,0,w,h);
gfx_mode=1; // additive
gfx_a=-1; // subtract
gfx_blit(input, 0);
Or, better yet -- take the "cheap brightness/contrast" preset, change the "contrast big" to -1, and the "saturation-ish" to -1, and that's exactly the same! (though it uses slightly more CPU...)

Last edited by Justin; 03-28-2018 at 02:34 PM.
Justin is online now   Reply With Quote