Just added a code breakdown for the Draw Together¹ Kitten² app to my blog post with the tutorial video:
https://ar.al/2024/03/26/draw-together/
Draw Together, in ~50 lines of code, is a real-time collaborative drawing tool on a 20×20 pixel grid where people can click to toggle the colour of each pixel.
(The full source and explanations fit the four screenshots on this post.)
¹ https://draw-together.small-web.org
² https://kitten.small-web.org
#Kitten #DrawTogether #web #design #dev #SmallWeb #WebSockets #StreamingHTML
Draw Together
Join me as I take you through building Draw Together – a little collaborative drawing toy I made and released over the weekend – from scratch.Aral Balkan
Alan Levine
in reply to Aral Balkan • • •Aral Balkan
in reply to Alan Levine • • •In memory.
Although it could if I wanted to using the integrated JSDB in Kitten :)
https://kitten.small-web.org/tutorials/persistence/
Alan Levine
in reply to Aral Balkan • • •