general/clocks/src/clock.js
/**
     * Paints the minute hand on the clock display.
     * Required by the drawClock function.
     * Scaled to a 200px diameter clock rotated to origin of 12o'clock.
     * @private
     */
Paints the minute hand on the clock display.
Required by the drawClock function.
Scaled to a 200px diameter clock rotated to origin of 12o'clock.
@private
Paints the minute hand on the clock display . Required by the drawClock function . Scaled to a 200px diameter clock rotated to origin of 12o ' clock . @private
function drawMinuteHand() {
        var begin = -30,
            end = 72,
            min = now.minutes(),
            sec = now.seconds();
        ctx.save();
        ctx.lineWidth = 5;
        ctx.strokeStyle = "black";
        ctx.lineCap = "round";
        ctx.rotate((Math.PI/30)*min + (Math.PI/1800)*sec)
        ctx.beginPath();
        ctx.moveTo(begin, 0);
        ctx.lineTo(end , 0);
        ctx.stroke();
        ctx.restore();
    }
function drawMinuteHand ( ) { var begin = - 30 , end = 72 , min = now . minutes ( ) , sec = now . seconds ( ) ; ctx . save ( ) ; ctx . lineWidth = 5 ; ctx . strokeStyle = "black" ; ctx . lineCap = "round" ; ctx . rotate ( ( Math . PI / 30 ) * min + ( Math . PI / 1800 ) * sec ) ctx . beginPath ( ) ; ctx . moveTo ( begin , 0 ) ; ctx . lineTo ( end , 0 ) ; ctx . stroke ( ) ; ctx . restore ( ) ; }
Paints the minute hand on the clock display.
Paints the minute hand on the clock display .
// Drawing constraints for the minute hand
 // Extend the minute hand beyond the center
 // Don't touch any previous settings on the stack
 // Style the minute hand
 // Rotate based on the current fractions of time
 // Restore previous settings on the canvas stack
