class Game::Ring

Defined in:

game/shapes/ring.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(center_x = nil, center_y = nil, outer_radius = nil, x = nil, y = nil, size = nil, inner_radius : Float32 | Int32 = 0, start_angle : Float32 | Int32 = 0, end_angle : Float32 | Int32 = 360, segments : Int32 = 0, color = nil, filled = Shape::FILLED) #

[View source]

Instance Method Detail

def center_x : Int32 | Float32 #

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

[View source]
def center_y : Int32 | Float32 #

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

[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 end_angle : Int32 | Float32 #

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

[View source]
def height #

[View source]
def height=(height) #

[View source]
def inner_radius : Int32 | Float32 #

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

[View source]
def outer_radius : Int32 | Float32 #

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

[View source]
def segments : Int32 #

[View source]
def segments=(segments : Int32) #

[View source]
def start_angle : Int32 | Float32 #

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

[View source]
def width #

[View source]
def width=(width) #

[View source]
def x #

[View source]
def x=(x) #

[View source]
def y #

[View source]
def y=(y) #

[View source]