class Game::Triangle

Defined in:

game/shapes/triangle.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(x1 : Float32 | Int32, y1 : Float32 | Int32, x2 : Float32 | Int32, y2 : Float32 | Int32, x3 : Float32 | Int32, y3 : Float32 | Int32, color = nil, filled = Shape::FILLED) #

[View source]

Instance Method Detail

def draw #

[View source]
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 height=(height) #

TODO


[View source]
def width #

[View source]
def width=(width) #

TODO


[View source]
def x #

[View source]
def x1 : Int32 | Float32 #

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

[View source]
def x2 : Int32 | Float32 #

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

[View source]
def x3 : Int32 | Float32 #

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

[View source]
def x=(x) #

TODO


[View source]
def y #

[View source]
def y1 : Int32 | Float32 #

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

[View source]
def y2 : Int32 | Float32 #

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

[View source]
def y3 : Int32 | Float32 #

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

[View source]
def y=(y) #

TODO


[View source]