A Random Collaborative Drawing Thingy

As a bit of a throwaway project, I made a super-simple multi-user drawing app. It uses Server-sent events, which is something I've wanted to play with for awhile.

The code is on github. The server is running on Sinatra, and the frontend is written using p5.js. There's not a lot more else to say about other than it's sort of amazing what you can do on the web these days – This whole thing is around 200 lines of code, and most of that is my lazy javascript.

-------------------------------------------------------------------------------
      Language                     files          blank        comment           code
      -------------------------------------------------------------------------------
      Javascript                       1             33              1            156
      HTML                             1              1              0             36
      Ruby                             1              8              0             34
      -------------------------------------------------------------------------------
      SUM:                             3             42              1            226
      -------------------------------------------------------------------------------

Try it out! Draw with your friends!

Filed under: projects