struct Clock
- Clock
- Struct
- Value
- Object
Overview
Draws a simple anolog clock
Included Modules
Defined in:
clock.crConstant Summary
-
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
Instance Method Summary
- #center : Vec(Int32)
- #center=(center : Vec(Int32))
- #colors : Hash(String, RGB(UInt8))
- #colors=(colors : Hash(String, RGB(UInt8)))
- #draw_arm(drawable, rads, length, color)
- #draw_to(drawable, time = Time.local)
- #radius : Int32
- #radius=(radius : Int32)