Sha256: 680eaaa515f8b2d730db710e31c9f8b1c3db1e67e712a82f29b505872bb7f53d
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
module Savage module Directions class HorizontalTo < CoordinateTarget def command_code (absolute?) ? 'H' : 'h' end def transform(scale_x, skew_x, skew_y, scale_y, tx, ty) unless skew_y.zero? raise 'rotating or skewing (in Y axis) an "horizontal_to" direction is not supported yet.' end self.target *= scale_x self.target += tx if absolute? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
text2path-0.0.2 | lib/ext/savage/lib/savage/directions/horizontal_to.rb |
text2path-0.0.1 | lib/ext/savage/lib/savage/directions/horizontal_to.rb |