class SVG::Transform

Public Class Methods

new(io) click to toggle source
# File lib/transform.rb, line 3
def initialize(io)
  @io = io
end

Public Instance Methods

matrix(a,b,c,d,e,f) click to toggle source
# File lib/transform.rb, line 32
def matrix(a,b,c,d,e,f)
  @io.print %(matrix(#{a} #{b} #{c} #{d} #{e} #{f}) )
  self
end
rotate(d,x=nil,y=nil) click to toggle source
# File lib/transform.rb, line 12
def rotate(d,x=nil,y=nil)
  @io.print %(rotate(#{d} #{x} #{y}) )
  self
end
scale(x,y=nil) click to toggle source
# File lib/transform.rb, line 17
def scale(x,y=nil)
  @io.print %(scale(#{x} #{y}) )
  self
end
skewx(a) click to toggle source
# File lib/transform.rb, line 22
def skewx(a)
  @io.print %(skewX(#{a}) )
  self
end
skewy(a) click to toggle source
# File lib/transform.rb, line 27
def skewy(a)
  @io.print %(skewY(#{a}) )
  self
end
translate(x,y) click to toggle source
# File lib/transform.rb, line 7
def translate(x,y)
  @io.print %(translate(#{x} #{y}) )
  self
end