general/clocks/src/clock.js
/**
     * Paints the hour marks on the analog clock face.
     * Required by the drawClock function.
     * Scaled to a 200px diameter clock rotated to origin of 12o'clock.
     * @private
     */
Paints the hour marks on the analog clock face.
Required by the drawClock function.
Scaled to a 200px diameter clock rotated to origin of 12o'clock.
@private
Paints the hour marks on the analog clock face . Required by the drawClock function . Scaled to a 200px diameter clock rotated to origin of 12o ' clock . @private
function drawHourMarks() {
        var begin = 68,
            end = 79;
        ctx.save();
        ctx.lineWidth = 5;
        ctx.strokeStyle = "black";
        ctx.lineCap = "round";
        for (i = 0; i < 12; i++) {
            ctx.beginPath();
            ctx.rotate(Math.PI/6);
            ctx.moveTo(begin, 0);
            ctx.lineTo(end, 0);
            ctx.stroke();
        }
        ctx.restore();
    }
function drawHourMarks ( ) { var begin = 68 , end = 79 ; ctx . save ( ) ; ctx . lineWidth = 5 ; ctx . strokeStyle = "black" ; ctx . lineCap = "round" ; for ( i = 0 ; i < 12 ; i ++ ) { ctx . beginPath ( ) ; ctx . rotate ( Math . PI / 6 ) ; ctx . moveTo ( begin , 0 ) ; ctx . lineTo ( end , 0 ) ; ctx . stroke ( ) ; } ctx . restore ( ) ; }
Paints the hour marks on the analog clock face.
Paints the hour marks on the analog clock face .
// Drawing constraints for hour marks
 // Don't touch any previous settings on the stack
 // Design of the hour marks
 // Draw each tick of the twelve hour analog clock
 // Restore previous settings on the canvas stack
