Class Prawn::Chart::Themes::Theme
In: lib/prawn/graph/themes.rb
Parent: Object

Methods

Attributes

background_colour  [RW] 
colours  [RW] 
font_colour  [RW] 
marker_colour  [RW] 
name  [RW] 
title  [RW] 

Public Class methods

Creates a new theme from a theme hash. The hash comes from the library parsing YAML definitions of a theme.

Public Instance methods

next_color()

Alias for next_colour

Returns the next colour in the array of colours associated with this theme. If it gets to the end, it starts again from the beginning.

[Validate]