Class: DYI::Drawing::Filter::DropShadow

Inherits:
Object
  • Object
show all
Includes:
SvgElement
Defined in:
lib/dyi/drawing/filter.rb

Overview

Since:

  • 0.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SvgElement

#draw_on, #puts_as_png, #puts_as_svg, #save, #save_as_svg, #to_png, #to_svg

Constructor Details

#initialize(canvas, blur_std, dx, dy) ⇒ DropShadow

Returns a new instance of DropShadow.

Since:

  • 0.0.0



33
34
35
36
37
38
39
# File 'lib/dyi/drawing/filter.rb', line 33

def initialize(canvas, blur_std, dx, dy)
  @canvas = canvas
  @blur_std = blur_std.to_i
  @dx = Length.new(dx)
  @dy = Length.new(dy)
  @id = @canvas.add_define(self)
end

Instance Attribute Details

#idObject (readonly)

Since:

  • 0.0.0



31
32
33
# File 'lib/dyi/drawing/filter.rb', line 31

def id
  @id
end

Instance Method Details

#child_elementsObject

Since:

  • 0.0.0



41
42
43
# File 'lib/dyi/drawing/filter.rb', line 41

def child_elements
  []
end

#draw_children?Boolean

Returns:

  • (Boolean)

Since:

  • 0.0.0



45
46
47
# File 'lib/dyi/drawing/filter.rb', line 45

def draw_children?
  true
end