class Silmaril::Prototype

Included Modules

Defined in:

silmaril/prototype.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : Tuple(Int32, Int32) = {352, 272}, scale : Int32 = 2, bgcol : Int32 = 0, title : String = "Prototype") #

[View source]

Instance Method Detail

def circle(at : Point, radius : Float64, col : Colour) #

[View source]
def frame : Int32 #

[View source]
def plot(at : Point, col : Colour) #

[View source]
def rect(at : Point, size : Size, col : Colour) #

[View source]
def run #

[View source]
def scale : Int32 #

[View source]
def setup #

[View source]
def size : {Int32, Int32} #

[View source]
def update #

[View source]
def window : SF::RenderWindow #

[View source]