Class Scruffy::Themes::Base
In: lib/scruffy/themes.rb
Parent: Object

Scruffy::Themes::Base

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.

Methods

darken   lighten   new   next_color  

Attributes

background  [RW] 
colors  [RW] 
font_family  [RW] 
marker  [RW] 

Public Class methods

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.
font_family: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.

Public Instance methods

todo: Implement darken function.

todo: Implement lighten function.

Returns the next available color in the color array.

[Validate]