Module: Ruby2D
- Defined in:
- lib/ruby2d/font.rb,
lib/ruby2d.rb,
lib/ruby2d/line.rb,
lib/ruby2d/quad.rb,
lib/ruby2d/text.rb,
lib/ruby2d/color.rb,
lib/ruby2d/image.rb,
lib/ruby2d/music.rb,
lib/ruby2d/sound.rb,
lib/ruby2d/circle.rb,
lib/ruby2d/sprite.rb,
lib/ruby2d/square.rb,
lib/ruby2d/window.rb,
lib/ruby2d/version.rb,
lib/ruby2d/triangle.rb,
lib/ruby2d/rectangle.rb,
lib/ruby2d/exceptions.rb,
lib/ruby2d/renderable.rb
Overview
Ruby2D::Renderable
Defined Under Namespace
Modules: DSL, Renderable Classes: Circle, Color, Error, Font, Image, Line, Music, Quad, Rectangle, Sound, Sprite, Square, Text, Triangle, Window
Constant Summary collapse
- Colour =
Allow British English spelling of color
Color
- VERSION =
'0.9.3'
Class Method Summary collapse
Class Method Details
.assets ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ruby2d.rb', line 37 def assets unless @assets if RUBY_ENGINE == 'mruby' @assets = Ruby2D.ext_base_path + 'assets' else @assets = './assets' end end @assets end |
.assets=(path) ⇒ Object
48 |
# File 'lib/ruby2d.rb', line 48 def assets=(path); @assets = path end |