Class: KawaiiText::TextLayerConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/kawaii_text/text_layer_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pointsizeObject

Returns the value of attribute pointsize.



3
4
5
# File 'lib/kawaii_text/text_layer_config.rb', line 3

def pointsize
  @pointsize
end

#stroke_colorObject

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_colorObject

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_widthObject

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

.defaultObject



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