Class: Labels::Shape
Overview
This class represents shape layers.
Instance Attribute Summary collapse
-
#corner_radius ⇒ Object
Corner radius in pixels.
-
#elliptical ⇒ Object
Whether or not the shape is elliptical.
-
#fill ⇒ Object
Whether or not to fill the shape.
-
#fill_color ⇒ Object
Fill color in hex.
-
#stroke ⇒ Object
Whether or not to stroke the shape.
-
#stroke_color ⇒ Object
Stroke color in hex.
-
#stroke_weight ⇒ Object
Stroke weight in pixels.
Attributes inherited from Layer
#alpha, #column, #content, #height, #locked, #rotation, #title, #type, #visible, #width, #x, #y, #z
Method Summary
Methods inherited from Element
Constructor Details
This class inherits a constructor from Labels::Element
Instance Attribute Details
#corner_radius ⇒ Object
Corner radius in pixels
18 19 20 |
# File 'lib/labels/shape.rb', line 18 def corner_radius @corner_radius end |
#elliptical ⇒ Object
Whether or not the shape is elliptical
15 16 17 |
# File 'lib/labels/shape.rb', line 15 def elliptical @elliptical end |
#fill ⇒ Object
Whether or not to fill the shape
21 22 23 |
# File 'lib/labels/shape.rb', line 21 def fill @fill end |
#fill_color ⇒ Object
Fill color in hex
27 28 29 |
# File 'lib/labels/shape.rb', line 27 def fill_color @fill_color end |
#stroke ⇒ Object
Whether or not to stroke the shape
24 25 26 |
# File 'lib/labels/shape.rb', line 24 def stroke @stroke end |
#stroke_color ⇒ Object
Stroke color in hex
30 31 32 |
# File 'lib/labels/shape.rb', line 30 def stroke_color @stroke_color end |
#stroke_weight ⇒ Object
Stroke weight in pixels
33 34 35 |
# File 'lib/labels/shape.rb', line 33 def stroke_weight @stroke_weight end |