Method: Axlsx::Color#initialize

Defined in:
lib/axlsx/stylesheet/color.rb

#initialize(options = {}) ⇒ Color

Creates a new Color object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • auto (Boolean)
  • rgb (String)
  • tint (Float)


13
14
15
16
# File 'lib/axlsx/stylesheet/color.rb', line 13

def initialize(options={})
  @rgb = "FF000000"
  parse_options options
end