class AuthorEngine::SpriteEditor::Pixel

Attributes

color[RW]
height[RW]
width[RW]
x[RW]
y[RW]

Public Class Methods

new(x, y, width, height, color) click to toggle source
# File lib/author_engine/views/sprite_editor.rb, line 6
def initialize(x, y, width, height, color)
  @x, @y, @width, @height, @color = x, y, width, height, color
end

Public Instance Methods

draw() click to toggle source
# File lib/author_engine/views/sprite_editor.rb, line 10
def draw
  Gosu.draw_rect(
    @x, @y,
    @width, @height,
    @color,
    5
  )
end