Skip to content

Instantly share code, notes, and snippets.

@ryanbrubaker
Created June 5, 2012 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanbrubaker/2872351 to your computer and use it in GitHub Desktop.
Save ryanbrubaker/2872351 to your computer and use it in GitHub Desktop.
Function to draw morse code signal line
drawSignalLine = ->
context = document.getElementById(
"communicationLineCanvas").getContext('2d')
context.clearRect(0, 0,
context.canvas.width, context.canvas.height)
context.moveTo(0, 30)
context.lineTo(500, 30)
context.strokeStyle = "#000"
context.closePath()
context.stroke()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment