Class: DYI::Drawing::Filter::DropShadow
- Inherits:
-
Object
- Object
- DYI::Drawing::Filter::DropShadow
show all
- Includes:
- SvgElement
- Defined in:
- lib/dyi/drawing/filter.rb
Overview
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.
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
#id ⇒ Object
31
32
33
|
# File 'lib/dyi/drawing/filter.rb', line 31
def id
@id
end
|
Instance Method Details
#child_elements ⇒ Object
41
42
43
|
# File 'lib/dyi/drawing/filter.rb', line 41
def child_elements
[]
end
|
#draw_children? ⇒ Boolean
45
46
47
|
# File 'lib/dyi/drawing/filter.rb', line 45
def draw_children?
true
end
|