   constructor: (@doc) ->
     @stops = []
     @embedded = no
-    @_transform = [1, 0, 0, 1, 0, 0]
+    @transform = [1, 0, 0, 1, 0, 0]
     @_colorSpace = 'DeviceRGB'
     
   stop: (pos, color, opacity = 1) ->

  apply: (op) ->
    # apply gradient transform to existing document ctm
    [m0, m1, m2, m3, m4, m5] = @doc._ctm.slice()
    [m11, m12, m21, m22, dx, dy] = @_transform
    m = [m0 * m11 + m2 * m12, m1 * m11 + m3 * m12, m0 * m21 + m2 * m22, m1 * m21 + m3 * m22, m0 * dx + m2 * dy + m4, m1 * dx + m3 * dy + m5]

    @embed(m) unless @embedded and m.join(" ") is @matrix.join(" ")
    @doc.addContent "/#{@id} #{op}"

    @stops.push [pos, @doc._normalizeColor(color), opacity]
    return this
    
  setTransform: (m11, m12, m21, m22, dx, dy) ->
    @transform = [m11, m12, m21, m22, dx, dy]
    return this

  embed: (m) ->
