VGAclocks


Author Message
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 353
Posted: 05:09pm 16 Apr 2025      

Coordinate section for the clock hands look like this example for the second of the first then objects:

'Shape
Lclk_hand_corners_s1: Data 13,4,4,4,4,4,5,4,5,4

Lclk_hand_corners_xs11: Data  -5,-5,-65,-25,-40,-10,  0, 10, 40,25,65, 5,  5
Lclk_hand_corners_ys11: Data -60,10, 90, 65,120,100,200,100,120,65,90,10,-60
Lclk_hand_corners_xs12: Data -3, -3, 3, 3,-3,8
Lclk_hand_corners_ys12: Data -55,190,190,-55,-55,8
Lclk_hand_corners_xs13: Data  1,2,3,5,5,5,5,5
Lclk_hand_corners_ys13: Data 1,2,3,4,6,6,6,6,6
Lclk_hand_corners_xs14: Data -15, 10,100,10
Lclk_hand_corners_ys14: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs15: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_ys15: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs16: Data -10,-10,-30,-40,-10,-30,-50,-20,-50,-20
Lclk_hand_corners_ys16: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs17: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_ys17: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs18: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_ys18: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs19: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_ys19: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_xs110: Data 10,10,30,40,10,30,50,20,50,20
Lclk_hand_corners_ys110: Data 10,10,30,40,10,30,50,20,50,20


I planned numbering of the face to be included, I need to write the routine that does that. BTW: I cleaned up all routines and beside the drawing "engine" for the clock, any object will(could) be possible to draw.

any variable an object has can be altered during runtime by your code and the next frame will be written with that e.g. some colour.

it _should_ run on any VGA platform at least in MODE 2
Edited 2025-04-17 03:17 by dddns