Method: Writeexcel::Format#set_fg_color

Defined in:
lib/writeexcel/format.rb

#set_fg_color(color = 0x40) ⇒ Object

The set_fg_color() method can be used to set the foreground colour of a pattern.

Default state:      Color is off
Default action:     Solid fill.
Valid args:         See set_color()

For further examples see the ‘Patterns’ worksheet created by formats.rb.



1539
1540
1541
# File 'lib/writeexcel/format.rb', line 1539

def set_fg_color(color = 0x40)
  @fg_color = get_color(color)
end