Brasten Sager
August 17th, 2006
A 3-dimensional cube effect.
Returns a Cubed instance.
# File lib/scruffy/renderers/cubed3d.rb, line 16 def define_layout super do |components| components << Scruffy::Components::Title.new(:title, :position => [5, 2], :size => [90, 7]) components << Scruffy::Components::Viewport.new(:one, :position => [10, 50], :size => VIEWPORT_SIZE, :skewY => '-25', &graph_block(:one)) components << Scruffy::Components::Viewport.new(:two, :position => [30, 50], :size => VIEWPORT_SIZE, :skewY => '-25', &graph_block(:two)) components << Scruffy::Components::Viewport.new(:three, :position => [50, 50], :size => VIEWPORT_SIZE, :skewY => '-25', &graph_block(:three)) components << Scruffy::Components::Viewport.new(:four, :position => [70, 50], :size => VIEWPORT_SIZE, :skewY => '-25', &graph_block(:four)) components << Scruffy::Components::Legend.new(:legend, :position => [5, 13], :size => [90, 5]) end end