Round clock timer component

Hi,
I’m looking for a feature. It’s a kind of round analog clock, but I don’t want to show current time. I want it to be a kind of timer which show time left and time passed in different colors. It should have a pointer moving smoothly around the clock leaving different color behind.
I’m working with actionscript, but I think it doesn’t matter, I may adapt this feature from any other language.

Hi @trebuchetosaur,

We’re glad you’re here :)

Can you please provide more details on what kind of help you are looking for with your project? This will make the community more likely to respond to your post. You may want to also include what you have tried so far.

Thanks!

Hi,

I think I’ve found the solution. I use drawWedge() function found on this page:

https://snipplr.com/view/67582/as3-drawing-shapes-arc-burst-dashedline-gear-polygon-star-wedge-line/

On every timer update I have to add new arc/wedge to the graphic object. Exapmle works anti-clockwise so I have to set negative arcValue to show tradtional clockwise behaviour. 

public function update():void {
				taskClock.graphics.beginFill(0xFF00FF);
				drawWedge(taskClock.graphics,100,100,100,3,arcValue);
				arcValue -= 3;
				taskClock.graphics.endFill();
			}