Module Scruffy::Helpers::Canvas
In: lib/scruffy/helpers/canvas.rb

Scruffy::Helpers::Canvas

Author:Brasten Sager
Date:August 16th, 2006

Provides common methods for canvas objects. Primarily used for providing spacial-type calculations where necessary.

Methods

Attributes

components  [RW] 

Public Instance methods

Protected Instance methods

Converts percentage values into actual pixe values based on the known render size.

Returns a hash consisting of :x, :y, :width, and :height elements.

[Validate]