struct Lime::Drawables::Circle

Overview

A drawable circle.

Defined in:

lime/drawables.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, radius : Int32, color : Colorize::Color = Colorize::ColorANSI::Default) #

Initializes a new Circle.


[View source]

Instance Method Detail

def color : Colorize::Color256 | Colorize::ColorANSI | Colorize::ColorRGB #

[View source]
def draw #

Inserts the circle into the buffer.

This method uses the midpoint circle algorithm.


[View source]
def radius : Int32 #

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

[View source]
def x : Int32 #

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

[View source]
def y : Int32 #

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

[View source]