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.
954 955 956 957 958 |
# File 'lib/processing/graphics_context.rb', line 954 def triangle(x1, y1, x2, y2, x3, y3) assertDrawing__ @painter__.line x1, y1, x2, y2, x3, y3, loop: true nil end |