Object
Author |
Brasten Sager & A.J. Ostman |
Date |
August 27th, 2006 |
The base theme class. Most themes can be constructed simply by instantiating a new Base object with a hash of color values.
See Scruffy::Themes::Base#instantiate for examples.
Returns a new Scruffy::Themes::Base object.
Hash options:
background |
background color. |
colors |
an array of color values to use for graphs. |
marker |
color used for grid lines, values, data points, etc. |
in general, allows you to change the font used in the graph. This is not yet supported in most graph elements, and may be deprecated soon anyway. |
# File lib/scruffy/themes.rb, line 34 def initialize(descriptor) self.background = descriptor[:background] self.colors = descriptor[:colors] self.marker = descriptor[:marker] self.font_family = descriptor[:font_family] end
todo: Implement darken function.
# File lib/scruffy/themes.rb, line 50 def darken(color, shift=20); end
Generated with the Darkfish Rdoc Generator 2.