Class: Array

Inherits:
Object show all
Defined in:
lib/core.rb

Instance Method Summary collapse

Instance Method Details

#to_colorObject



207
208
209
# File 'lib/core.rb', line 207

def to_color
  return Gosu::Color.new(self[0], self[1], self[2], self[3])
end

#xObject



210
211
212
# File 'lib/core.rb', line 210

def x
  return self[0]
end

#yObject



213
214
215
# File 'lib/core.rb', line 213

def y
  return self[1]
end