BG
Remixes 1
Want to remix this clipart?
- Download the SVG
- Edit it in your favourite SVG editor
- Upload with Upload Remix (links automatically)
Sources
No catalog sources linked yet.
I found this clipart!
Related Finds โ Openclipart spotted in the wild. Browse all ยท Atom
No Finds yet.
Log in to post a Found.
Comments
Log in to comment.
@j4p4n
2021-05-18 10:54:40+00@jarda nice mammoth! :) btw, you seem to know about editing the actual code of SVG files? Do you know how I can combine my animated clock remix https://openclipart.org/detail/330863/animated-clock-black with the calendar https://openclipart.org/detail/330864/vector-calendar-black one with out breaking the animations on one? And... is there anyway to tick up the day on the calendar whenever the clock hits midnight inside the SVG? or when the day changes if that can be checked?
@jarda
2021-05-18 12:12:08+00@j4p4n I did not used build-in javascript in my animations so far. All my animations are based on svg+CSS (or SMIL) only.
I have svg+javascript on my bucket list. Your question can be good impulse to look at it :-)
@j4p4n
2021-05-18 13:08:41+00@jarda if you start looking into it, let me know ;) lol I have tried for some of my animated SVGs but it's confusing for my skill level haha
@jarda
2021-05-18 23:00:00+00@j4p4n My understanding of function setClock is following:
Function acquires current time, set appropriate position of hands and starts animantions for them.
It was probably planned to call function repeatedly approximately once per minute (when red hand points upward) to re-adjust hands position according to current system clock and re-start all animations (animation timer can be shifted a bit after some time).
I found one small bug in script so far.
Because of missing brackets in calling of function dt.getMilliseconds(), on line 173 (try to press CTRL+U in most of browsers) the variable timeout was set to value NaN (not a number).
I am not javascript expert, but I guess that something like pointer to method getMilliseconds (ie. address in memory where method is stored) was attempted to retract from variable timeout instead of milliseconds count.
Consequence of this was that function setClock was not called once per minute but (as was planned) but effectively permanently - it was called immediately with zero timeout again and again.
When missing brackets are inserted, script behaves as expected (it should be a bit less cpu consuming).
I also mentioned a small visual glitch. Hands are drawn below ticks for numbers 1, 2, 4, 5, 7, 8, 10 and 11.
It is visible especially for red one.
There should changed order of svg elements to be hands displayed as last ones (over other elements)
I think it should be possible insert body of function init() into setClock function (prior calling of setTimeout) if you want to combine clock with calendar. Calendar values would be refreshed once per minute as well (every whole minute).
But I am too lazy today to put both widgets together into one file and test it.