class Animatis::Kanvas

Defined in:

animatis.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32, height : Int32) #

[View source]

Instance Method Detail

def background(color : Kolor) #

[View source]
def circle(x : Int32, y : Int32, radius : Int32) #

[View source]
def each_frame(&block : Array(SF::Event) -> ) #

[View source]
def fill_color : Kolor #

[View source]
def fill_color=(fill_color : Kolor) #

[View source]
def fps : Int32 #

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

[View source]
def no_fill : Bool #

[View source]
def no_fill=(no_fill : Bool) #

[View source]
def no_stroke : Bool #

[View source]
def no_stroke=(no_stroke : Bool) #

[View source]
def rectangle(x : Int32, y : Int32, width : Int32, height : Int32) #

[View source]
def sleeping : Bool #

[View source]
def sleeping=(sleeping : Bool) #

[View source]
def start #

[View source]
def stroke_color : Kolor #

[View source]
def stroke_color=(stroke_color : Kolor) #

[View source]
def stroke_weight : Float32 #

[View source]
def stroke_weight=(stroke_weight : Float32) #

[View source]
def translate(translated_x : Int32, translated_y : Int32) #

[View source]