Skip to content

Commit

Permalink
Passing color.
Browse files Browse the repository at this point in the history
  • Loading branch information
polarblau committed Aug 11, 2013
1 parent cae7743 commit 1415fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/jquery.progress.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ $.fn.extend
duration : settings.duration
queue : false
easing : settings.easing
step : (percentage) -> render(percentage, context)
step : (percentage) -> render(percentage, context, color)
})

percentageToRadians = (percentage) ->
(1.5 - (percentage * 2 / 100)) * Math.PI

render = (percentage, context) ->
render = (percentage, context, color) ->
canvasSize = context.canvas.width
context.clearRect(0, 0, canvasSize, canvasSize)
context.beginPath()
Expand Down

0 comments on commit 1415fa7

Please sign in to comment.