Method: Processing::GraphicsContext#triangle
- Defined in:
- lib/processing/graphics_context.rb
#triangle(x1, y1, x2, y2, x3, y3) ⇒ nil Also known as: drawTriangle
Draws a triangle.
1644 1645 1646 1647 1648 |
# File 'lib/processing/graphics_context.rb', line 1644 def triangle(x1, y1, x2, y2, x3, y3) assertDrawing__ @painter__.line x1, y1, x2, y2, x3, y3, loop: true nil end |