module Cairo::Context::Triangle

Public Instance Methods

triangle(x1, y1, x2, y2, x3, y3) click to toggle source
# 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