Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to draw analog clock. So the main canvas will be dial and, hours and minutes arrows, and the second will be seconds arrow (for update every 1 second).

HTML
HTML
<canvas id="clock"></canvas>
<canvas id="second"></canvas>


JScript
JavaScript
canvas = document.getElementById('clock');
canvas.width = document.documentElement.clientWidth;
canvas.height = document.documentElement.clientHeight-6;
canvas = document.getElementById('second');
canvas.width = document.documentElement.clientWidth;
canvas.height = document.documentElement.clientHeight-6;


But canvases are not transparent and I can not to draw. Any ideas?

Thank you for attention.
Posted
Updated 26-Sep-12 8:36am
v2

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Sep-12 17:39pm    
Not bad, even though OP's problem is not clear to me; a 5.
--SA
ridoy 27-Sep-12 10:04am    
thanks Sergey..
RedDk 26-Apr-15 15:43pm    
Bad link -> "HTTP Error 503. The service is unavailable."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900