Class: KawaiiText::TextLayerConfig
- Inherits:
-
Object
- Object
- KawaiiText::TextLayerConfig
- Defined in:
- lib/kawaii_text/text_layer_config.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pointsize ⇒ Object
Returns the value of attribute pointsize.
-
#stroke_color ⇒ Object
Returns the value of attribute stroke_color.
-
#stroke_fill_color ⇒ Object
Returns the value of attribute stroke_fill_color.
-
#stroke_width ⇒ Object
Returns the value of attribute stroke_width.
Class Method Summary collapse
Instance Attribute Details
#pointsize ⇒ Object
Returns the value of attribute pointsize.
3 4 5 |
# File 'lib/kawaii_text/text_layer_config.rb', line 3 def pointsize @pointsize end |
#stroke_color ⇒ Object
Returns the value of attribute stroke_color.
3 4 5 |
# File 'lib/kawaii_text/text_layer_config.rb', line 3 def stroke_color @stroke_color end |
#stroke_fill_color ⇒ Object
Returns the value of attribute stroke_fill_color.
3 4 5 |
# File 'lib/kawaii_text/text_layer_config.rb', line 3 def stroke_fill_color @stroke_fill_color end |
#stroke_width ⇒ Object
Returns the value of attribute stroke_width.
3 4 5 |
# File 'lib/kawaii_text/text_layer_config.rb', line 3 def stroke_width @stroke_width end |
Class Method Details
.default ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/kawaii_text/text_layer_config.rb', line 5 def self.default config = TextLayerConfig.new config.pointsize = 72 config.stroke_width = 3 config.stroke_color = "none" config.stroke_fill_color = "none" config end |