1 страниц (9 вхождений)
Analog Clock - A simple animation - Сообщения
#1 Опубликовано: 09.07.2013 10:24:35
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 пользователям понравился этот пост
ioan92 09.07.2013 11:21:00, Вячеслав Мезенцев 11.07.2013 13:12:00, Andrey Ivashov 10.07.2013 08:27:00, Fridel Selitsky 09.07.2013 14:27:00
#2 Опубликовано: 09.07.2013 16:51:49
Beautiful animation: To reduce the computation time can be operators "for", which do not depend on time, move out of the function cloc (s).
Best Regards,Ber7.
AnalogClock1.sm (22 КиБ) скачан 163 раз(а).
Best Regards,Ber7.
AnalogClock1.sm (22 КиБ) скачан 163 раз(а).
2 пользователям понравился этот пост
#3 Опубликовано: 09.07.2013 17:20:04
Thank you ber,
this make the script faster and easier to read
Best regards,
Davide
P.S. worksheet updated
this make the script faster and easier to read

Best regards,
Davide
P.S. worksheet updated

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 11.07.2013 05:37:01
Davide,if your program to change the settings a bit, we get
"real" analog clock (all the arrows are moving continuously).
Best Regards,
Ber7
AnalogClock2.sm (21 КиБ) скачан 206 раз(а).
"real" analog clock (all the arrows are moving continuously).
Best Regards,
Ber7

AnalogClock2.sm (21 КиБ) скачан 206 раз(а).
2 пользователям понравился этот пост
#5 Опубликовано: 11.07.2013 08:49:18
I see, wonderful

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Опубликовано: 16.07.2019 00:08:53
#7 Опубликовано: 18.07.2019 14:24:18
Cheers to all!
This is my 5 cents to this thread. I only took some pieces of code from here and there, a little bit of make up, and.. voilá: my version of analog clock that works on "real" time
Updated 19jul2019 (Special thanks to [USERLINK]Razonar[/USERLINK]):
Annoying "purple line" eliminated. Path for sound files fixed. More realistic movement of hands clock.

MyClock2.sm (38 КиБ) скачан 82 раз(а).
click_low.wav (171 КиБ) скачан 80 раз(а).
alarm.wav (891 КиБ) скачан 74 раз(а).
This is my 5 cents to this thread. I only took some pieces of code from here and there, a little bit of make up, and.. voilá: my version of analog clock that works on "real" time
Updated 19jul2019 (Special thanks to [USERLINK]Razonar[/USERLINK]):
Annoying "purple line" eliminated. Path for sound files fixed. More realistic movement of hands clock.
MyClock2.sm (38 КиБ) скачан 82 раз(а).
click_low.wav (171 КиБ) скачан 80 раз(а).
alarm.wav (891 КиБ) скачан 74 раз(а).
2 пользователям понравился этот пост
#8 Опубликовано: 19.07.2019 02:25:06
Hola Oscar. Very nice effects.
You can improve it multiply Play() by 1000 or something else but big. This avoid the horizontal purple line in the clock.
Also you define the location of the files as "D:\sound.wav". Using 1000*Play("sound.wav" ) searches sound in the same directory of the SMath file.
Finally notice that your blue hours hand jumps between hours, but not follow the actual movement of an hours hand clock. You need to take 1/2-1/6*el(NOW,1)-el(NOW,2)/600 as the arguments for sin, cos functions for place it between exact hours considering the minutes too.
Best regards.
Alvaro.
You can improve it multiply Play() by 1000 or something else but big. This avoid the horizontal purple line in the clock.
Also you define the location of the files as "D:\sound.wav". Using 1000*Play("sound.wav" ) searches sound in the same directory of the SMath file.
Finally notice that your blue hours hand jumps between hours, but not follow the actual movement of an hours hand clock. You need to take 1/2-1/6*el(NOW,1)-el(NOW,2)/600 as the arguments for sin, cos functions for place it between exact hours considering the minutes too.
Best regards.
Alvaro.
2 пользователям понравился этот пост
#9 Опубликовано: 19.07.2019 18:15:08
WroteHola Oscar. Very nice effects.
You can improve it multiply Play() by 1000 or something else but big. This avoid the horizontal purple line in the clock.
Also you define the location of the files as "D:\sound.wav". Using 1000*Play("sound.wav" ) searches sound in the same directory of the SMath file.
Finally notice that your blue hours hand jumps between hours, but not follow the actual movement of an hours hand clock. You need to take 1/2-1/6*el(NOW,1)-el(NOW,2)/600 as the arguments for sin, cos functions for place it between exact hours considering the minutes too.
Best regards.
Alvaro.
Thanks for your suggestions

I've updated the file and I uploaded the new one, you can check it here.
1 страниц (9 вхождений)
-
Новые сообщения
-
Нет новых сообщений