# cocos.draw module

class `Canvas`

  Bases: `cocos.cocosnode.CocosNode`

  `build_vbo`()
  `draw`()
  `endcap`(line, cap_type)
  `free`()
  `line_to`(end)
  `move_to`(position)
  `on_exit`()
  `pop`()
  `push`()
  `rotate`(radians)
  `set_color`(color)
  `set_endcap`(cap)
  `set_join`(join)
  `set_stroke_width`(stroke_width)
  `translate`(vect)

class `Context`

  Bases: `object`

  `copy`()
  `set_state`()
  `unset_state`()

class `FragmentShader`(source)

  Bases: `cocos.draw.Shader`

  `shader_type` = 35632

class `Line`(start, end, color, stroke_width=1)

  Bases: `cocos.draw.Canvas`

  `render`()
  `color`
  `end`
  `start`
  `stroke_width`

class `Segment`(start, end, width)
  `reversed`()
  `bl`
  `br`
  `direction`
  `left`
  `line_width`
  `points`
  `right`
  `tl`
  `tr`

class `Shader`(source)

  Bases: `object`

  `begin`()
  `end`()

class `VertexShader`(source)

  Bases: `cocos.draw.Shader`

  `shader_type` = 35633

`flatten`(*args)

`parameter`(default=None)