- Main Page
- Modules
- Data Structures
- Files

- Search for |

draw_fill_grad_rect
draw_fill_rect
draw_grad_line
draw_grad_rect
draw_line
draw_pixel
draw_rect
void draw_grad_line | ( | float | startX,
|  | float | startY,
|  | float | endX,
|  | float | endY,
|  | u32 | color1,
|  | u32 | color2 |
| ) |  |  |
  Draw solid line Example: Draw a red-to-blue line through the middle of the screen
       drawLine ( 240, 0, 240, 272, RGB(255,0,0), RGB(0,0,255));
  Parameters:
  | startX | - Horizontal starting point of the line.
  | startY | - Vertical starting point of the line.
  | endX | - Horizontal ending point of the line.
  | endY | - Vertical ending point of the line.
  | color1 | - Beginning color of the line.
  | color2 | - Ending color of the line.
Definition at line 70 of file shape.c. References CP_Vertex_2D::color, CP_Vertex_2D::x, CP_Vertex_2D::y, and CP_Vertex_2D::z.