Method: PSD::PathRecord#scale

Defined in:
lib/psd/path_record.rb

#scale(xr, yr) ⇒ Object

Attempts to scale the path



103
104
105
106
107
108
109
110
111
112
# File 'lib/psd/path_record.rb', line 103

def scale(xr, yr)
  return unless is_bezier_point?

  @preceding_vert *= yr
  @preceding_horiz *= xr
  @anchor_vert *= yr
  @anchor_horiz *= xr
  @leaving_vert *= yr
  @leaving_horiz *= xr
end