模拟时钟

UI类指令,提供模拟钟表显示功能

class UI.Clock(x, y, radius)

描述: 构建对象

../_images/class1.png

参数:

  • xy - 左上角作为起点坐标
  • radius - 钟表半径

UI.settime()

描述: 获取本地时间并设置模拟钟表时间

../_images/settime.png

UI.drawClock()

描述: 绘制钟表

../_images/drawClock.png

UI.clear()

描述: 清除钟表