1/31/2024 0 Comments Purebasic sprite transparencyDon't write something too elaborate or convoluted, instead do whatever is natural, concise and clear in your language. A clock is rarely (never?) a major application: try to keep your code simple and to the point.For a bad example, many OpenGL programs update the frame-buffer in a busy loop even if no redraw is needed, which is very undesirable for this task. A clock is rarely (never?) a major application: don't be a CPU hog and poll the system timer every microsecond, use a proper timer/signal/event from your system or language instead.The clock is unlikely to be used to control space flights, so it needs not be hyper-accurate, but it should be usable, meaning if one can read the seconds off the clock, it must agree with the system clock.Both text-based and graphical drawing are OK. However, it must clearly change every second, and the change must cycle every so often (one minute, 30 seconds, etc.) It must be drawn printing a string of numbers to your terminal doesn't qualify. Only showing the seconds is required, e.g.: a watch with just a second hand will suffice. It can be a stopwatch, hourglass, sundial, a mouth counting "one thousand and one", anything. You are encouraged to solve this task according to the task description, using any language you may know.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |