You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

draw_rectangle_inverted

draw_rectangle_inverted(x1,y1,x2,y2)
Draws a rectangle which inverts the colors beneath it.
COPY
  1. /// draw_rectangle_inverted(x1,y1,x2,y2)
  2. //
  3. // Draws a rectangle which inverts the colors beneath it.
  4. // Resets the blending mode to normal.
  5. //
  6. // x1,y1 1st corner of the rectangle, real
  7. // x2,y2 2nd corner of the rectangle, real
  8. //
  9. /// gmlscripts.pro/license
  10. {
  11. draw_set_blend_mode_ext(bm_inv_dest_color,bm_inv_src_color);
  12. draw_rectangle_color(argument0,argument1,argument2,argument3,c_white,c_white,c_white,c_white,0);
  13. draw_set_blend_mode(bm_normal);
  14. return 0;
  15. }

Contributors: edmunn

GitHub: View · Commits · Blame · Raw