struct

Clock

Inherits CG2d < Struct < Value < Object

Draws a simple anolog clock

Constants

HOURS_PER_DAY = 24
MINUTES_PER_DAY = HOURS_PER_DAY * 60
SECONDS_PER_DAY = MINUTES_PER_DAY * 60.0
TWO_PI = Math::PI * 2

Constructors

new(center : CG2d::Vec(Int32), radius : Int32)
Source

Instance methods

center
Source
center=(center : Vec(Int32))
Source
colors
Source
colors=(colors : Hash(String, RGB(UInt8)))
Source
draw_arm(drawable, rads, length, color)
Source
draw_to(drawable, time = Time.local)
Source
radius
Source
radius=(radius : Int32)
Source