159 circle* circle_cir = SHCreateCircle(46, pt_center);
160 circle* circle_ms = SHCreateCircle(12, pt_offset_ms);
171 hands_arr[0] = ch_hour;
172 hands_arr[1] = ch_min;
173 hands_arr[2] = ch_sec;
174 hands_arr[3] = ch_ms;
189 FBDrawCircle(fb, circle_cir);
190 FBDrawString(fb, twelve_corner,
"12");
191 FBDrawString(fb, six_corner,
"6");
192 FBDrawString(fb, three_corner,
"3");
193 FBDrawString(fb, nine_corner,
"9");
205 FBDrawCircle(fb, circle_ms);
206 FBDrawShapeArr(fb, numhands, shapeptr);
208 FBEraseShapeArr(fb, numhands, shapeptr);
238 point* p0 = SHCreatePoint(10, 10, 15);
239 point* p1 = SHCreatePoint(10, 20, 15);
240 point* p2 = SHCreatePoint(30, 30, 15);
241 shape* tri = SHCreateTriangle(p0, p1, p2);
243 point* p2_0 = SHCreatePoint(50, 50, 11);
244 shape* square = SHCreateQuad(p2_0, 10, 10);
246 point* round_center =SHCreatePoint(70, 35, 7);
250 shapeArr[0] = tri; shapeArr[1] = square;
254 FBDrawLine(fb, SHCreatePoint(0, 0, 15), SHCreatePoint(0, 10, 15), 15);
259 FBDrawShapeArr(fb, 2, shapeArr);
262 FBDrawEllipseFill(fb, round_center, 30, 5, round_center->
shade);
269 point* pt = SHCreatePoint(20, 35, 15);
271 FBDrawString(fb, pt,
"A B C D E F G");
283 unsigned char i, j, a, b;
304 printf(
"%c%c", a, b);
unsigned char * G2ConvertFBToRITFormat(framebuffer fb)
void TKIncrementHours(clocktime *tm, short hours)
Representation of a circle.
Representation of a shape.
void TKDestroy(clocktime *tm)
void CFDestroyClockFace(clockface *cf)
void TKIncrementMS(clocktime *tm, short ms)
void printFramebuffer(unsigned char *fb)
void CFUpdateTime(clockface *cf)
shape ** CFToShapes(clockface *cf)
clockhand * CHCreateClockHand(point *center, ushort radius, uchar type)
void CHDestroyClockHand(clockhand *ch)
void demonstrateDrawString(void)
void CFDestroyShapes(clockface *cf)
void demonstrateClock(void)
Representation of an ordered pair with a shade.
clockface * CFCreateClockFace(ushort numHands, clockhand **chs, clocktime *th)
void pseudointerrupt(clocktime *tm)
void demonstrateClockMenu(void)
void demonstrateDrawShapes(void)
void TKIncrementMinutes(clocktime *tm, short minutes)
#define TK_PRINT_MODE_HOURS_MINUTES_SECONDS_MS
void demonstrateVoidPointerMenus(void)
clocktime * TKCreateTimeHandle(char mode)