class Game::Pixel

Defined in:

game/shapes/pixel.cr

Constructors

Instance Method Summary

Instance methods inherited from class Game::Shape

color : Color color, color=(color : Color) color=, draw(image : Image, parent_x = 0, parent_y = 0)
draw(parent_x = 0, parent_y = 0)
draw
, draw_filled(image : Image, parent_x = 0, parent_y = 0)
draw_filled(parent_x = 0, parent_y = 0)
draw_filled
, draw_outlined(image : Image, parent_x = 0, parent_y = 0)
draw_outlined(parent_x = 0, parent_y = 0)
draw_outlined
, filled=(filled : Bool) filled=, filled? : Bool filled?, height height, height=(_height) height=, update(_frame_time) update, width width, width=(_width) width=, x x, x=(_x) x=, y y, y=(_y) y=

Constructor methods inherited from class Game::Shape

new(color, filled : Bool = FILLED) new

Constructor Detail

def self.new(x : Float32 | Int32, y : Float32 | Int32, color = nil, filled = Shape::FILLED) #

[View source]

Instance Method Detail

def draw_filled(parent_x = 0, parent_y = 0) #

[View source]
def draw_outlined(parent_x = 0, parent_y = 0) #

[View source]
def height #

[View source]
def width #

[View source]
def x : Int32 | Float32 #

[View source]
def x=(x : Int32 | Float32) #

[View source]
def y : Int32 | Float32 #

[View source]
def y=(y : Int32 | Float32) #

[View source]