Tsev > Xov xwm > Ntsiab lus

CMD_CLOCK - Kos Ib Lub Sij Hawm Analog

Apr 27, 2019

image

C daim ntawv prototype

tsis muaj dabtsis cmd_clock (int16_t x,

int16_t y,

int16_t r,

uint16_t xaiv,

uint16_t h,

uint16_t m,

uint16_t s,

uint16_t ms);

Cov lus qhia

x

x-coordinate ntawm moos chaw, hauv pixels

y

y-coordinate ntawm moos chaw, hauv pixels

kev xaiv

Los ntawm lub neej ntawd lub suab hu nws yog kos nrog 3D effect thiab lub npe ntawm qhov kev xaiv no

yog OPT_3D. Kev xaiv OPT_FLAT tshem tawm cov nyhuv 3D. Nrog rau kev xaiv

OPT_NOBACK, tom qab tsis yog kos. Nrog rau kev xaiv OPT_NOTICKS, tus

kaum ob teev cov zuam tawm tsis tuaj. Nrog rau kev xaiv OPT_NOSECS, lub vib nas this tes

tsis yog kos. Nrog rau kev xaiv OPT_NOHANDS, tsis muaj txhais tes kos. Nrog rau kev xaiv

OPT_NOHM, tsis xuab moos thiab feeb ob txhais tes.

h

teev

m

feeb

s

vib nas this

ms

milliseconds

Kev piav qhia

Cov ntsiab lus ntawm lub cev dimension yog

 Tus zuam 12 tus cim tau muab tso rau ntawm lub voj voog uas muaj radius r * (200/256).

 Txhua zuam yog lub ntsiab lus ntawm lub vojvoog r * (10/256)

 Qhov thib ob txhais tes muaj ntev r * (200/256) thiab dav r * (3/256)

 Cov feeb tes muaj ntev r * (150/256) thiab dav r * (9/256)

 Cov sijhawm teev muaj ntev r * (100/256) thiab dav r * (12/256)

Xa mus rau cov tshuab hluav taws xob cav cov voj voog ntawm lub cev kom paub ntxiv

image

image

image

Lub sij hawm teb yuav muaj nuj nqis loj. Ntawm no yog cov xuab moos (7 x 3600s) thiab feeb

(38 x 60s), thiab feeb yog 59. Tsim lub ntsej muag lub ntsej muag uas qhia lub sijhawm

7.38.59:

image

image

image

image