Module: Cairo::Context::Triangle

Included in:
Cairo::Context
Defined in:
lib/cairo/context/triangle.rb

Instance Method Summary collapse

Instance Method Details

#triangle(x1, y1, x2, y2, x3, y3) ⇒ Object



4
5
6
7
8
9
# File 'lib/cairo/context/triangle.rb', line 4

def triangle(x1, y1, x2, y2, x3, y3)
  move_to(x1, y1)
  line_to(x2, y2)
  line_to(x3, y3)
  close_path
end