[cairo-commit] rcairo/src/lib/cairo/context triangle.rb,NONE,1.1

Kouhei Sutou commit at pdx.freedesktop.org
Mon May 28 05:22:23 PDT 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src/lib/cairo/context
In directory kemper:/tmp/cvs-serv16558/src/lib/cairo/context

Added Files:
	triangle.rb 
Log Message:
* src/lib/cairo/context.rb, src/lib/cairo/context/triangle.rb:
  added a convenience method.

* samples/agg/aa_test.rb: implemented random shapes test.


--- NEW FILE: triangle.rb ---
module Cairo
  class Context
    module Triangle
      def triangle(x1, y1, x2, y2, x3, y3)
        move_to(x1, y1)
        line_to(x2, y2)
        line_to(x3, y3)
        close_path
      end
    end
  end
end



More information about the cairo-commit mailing list