class Etti::Element::Base

Public Class Methods

new(x=nil, y=nil) click to toggle source
# File lib/etti/elements/base.rb, line 6
def initialize x=nil, y=nil
    @x = x || 0.0
    @y = y || 0.0
    @rotation = 0.0
    @color = [0.0, 0.0, 0.0, 1.0]
end