# Module cocos.draw

## Classes

| Shader
| VertexShader
| FragmentShader
| Context
| Segment
| Canvas
| Line

## Functions

| parameter(default=None)
| flatten(*args)

## Constants

| BEVEL_JOIN = `1`
| BUTT_CAP = `2`
| MITER_JOIN = `0`
| ROUND_CAP = `0`
| ROUND_JOIN = `2`
| SQUARE_CAP = `1`

## Variables

| cuadric_t = ``'``\nvoid main() {\n vec2 pos = gl_TexCoord[0].st``...``
| __package__ = ``'``cocos``'``

## Variables Details

### cuadric_t

Value:

      '''
      void main() {
          vec2 pos = gl_TexCoord[0].st;
          float res = pos.x*pos.x - pos.y;
          if (res<0.0) {
              gl_FragColor = gl_Color;
          } else {
              gl_FragColor = vec4(0.0,0.0,0.0,0.0);
      ...