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: Set line width
  
  Parameters
  ----------
  width : float
      The line width.
docstr_tok: ["Set","line","width","Parameters","--","--","--","--","--","width",":","float","The","line","width","."]
code: def set_line_width(self, width=1.0):
      """Set line width
  
      Parameters
      ----------
      width : float
          The line width.
      """
      width = float(width)
      if width < 0:
          raise RuntimeError("Cannot have width < 0")
      self.glir.command("FUNC", "glLineWidth", width)
  
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 5 for calling the BaseGlooFunctions obj's underlying member method code with example usage: obj.set_line_width(width) without return types