class_docstr: Class that provides a series of GL functions that do not fit
  in the object oriented part of gloo. An instance of this class is
  associated with each canvas.
docstr: Toggle writing of frame buffer color components
  
  Parameters
  ----------
  red : bool
      Red toggle.
  green : bool
      Green toggle.
  blue : bool
      Blue toggle.
  alpha : bool
      Alpha toggle.
docstr_tok: ["Toggle","writing","of","frame","buffer","color","components","Parameters","--","--","--","--","--","red",":","bool","Red","toggle",".","green",":","bool","Green","toggle",".","blue",":","bool","Blue","toggle",".","alpha",":","bool","Alpha","toggle","."]
code: def set_color_mask(self, red, green, blue, alpha):
      """Toggle writing of frame buffer color components
  
      Parameters
      ----------
      red : bool
          Red toggle.
      green : bool
          Green toggle.
      blue : bool
          Blue toggle.
      alpha : bool
          Alpha toggle.
      """
      self.glir.command(
          "FUNC",
          "glColorMask",
          bool(red),
          bool(green),
          bool(blue),
          bool(alpha),
      )
  
imports: import numpy
  from copy import deepcopy
  from .None import gl
  from ..color import Color
  from ..util import logger
label_desc: Use image node_id 20 for calling the BaseGlooFunctions obj's underlying member method code with example usage: obj.set_color_mask(red, green, blue, alpha) without return types