Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
getRoom = (roomId) ->
room = nowjs.getGroup roomId
return room if room.augumented
room.drawings = []
room.now.sendStartDrawing = (x, y) ->
room.currentDrawing = [ x: x, y: y ]
room.now.startDrawing x, y
room.now.sendDraw = (x, y) ->
room.currentDrawing.push x: x, y: y
room.now.draw x, y
room.now.sendStopDrawing = ->
room.drawings.push room.currentDrawing
room.now.stopDrawing()
room.augumented = true
room
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.