Coder Social home page Coder Social logo

urbanonymous / web-draw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martendo/web-draw

0.0 0.0 0.0 638 KB

A little real-time online collaborative drawing program

Home Page: https://w-draw.web.app

License: GNU General Public License v3.0

JavaScript 0.26% TypeScript 67.79% CSS 8.03% Makefile 1.22% HTML 22.71%

web-draw's Introduction

Web Draw Pen Logo

Version Website

A little real-time online collaborative drawing program. https://w-draw.web.app

Web Draw is a web app that allows users to draw on a shared canvas in real time. It's currently a little rough, but is seeing some improvement here and there.

How does it work?

Web Draw uses sessions, which connect users together. All users in a session work on the same canvas.

Each session has a unique session ID, which can be set to anything. A random 4-character session ID is generated if one is not provided. A session's ID can be changed at any time so long as the new ID isn't already taken.

Sessions can also optionally have a password set on them, so that only users who are able to provide the password can join. A session's password can be changed or removed at any time.

Currently available tools

  • pen Pen Tool
  • eraser Eraser Tool
  • flood-fill Flood Fill Tool
  • colour-picker Colour Picker Tool
  • select Rectangular Select Tool
  • line Line Tool
  • rect Rectangle Tool
  • ellipse Ellipse Tool

How does it really work?

Web Draw uses WebSockets for the "Web" part, and the web Canvas API for the "Draw" part.

The WebSockets server uses the ws module for Node.js and speaks MessagePack with its clients using msgpack-lite. When a user performs an action, the server is told about it, and if necessary, then tells all other session members about it.

web-draw's People

Contributors

martendo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.