lib/beziermotifs.rb in xrvg-0.0.5 vs lib/beziermotifs.rb in xrvg-0.0.6

- old
+ new

@@ -15,10 +15,21 @@ # == Attributes # attribute :support class BezierMotif < BezierBuilder include Attributable attribute :support + + def BezierMotif.build( *args ) + builder = self.new( *args ) + result = [] + builder.support.pairs do |p1,p2| + builder.support = [p1,p2] + result << Bezier.multi( builder.compute ) + end + return result.sum + end + end # = PicBezier class @@ -106,9 +117,5 @@ end end end # end XRVG - - - -