News for hackers. Stuff that matters.
Re:JS Paint – A web-based MS Paint remake by wybiral on Wednesday January 17, 2018 @11:44PM (#16174763)
Neat, there's a multi-user mode: http://jspaint.ml/#session:test
Re:JS Paint – A web-based MS Paint remake by notatoad on Thursday January 18, 2018 @01:23AM (#16175132)
I just opened a multi-user mspaint session on my phone. The future is now.
Re:JS Paint – A web-based MS Paint remake by exikyut on Wednesday January 17, 2018 @11:55PM (#16174803)
It's currently being destroyed. It's AWESOME
Re:JS Paint – A web-based MS Paint remake by mitchellst on Wednesday January 17, 2018 @11:59PM (#16174820)
Come for the 90's nostalgia. Stay for the websocket fight in a phonebooth.
Re:JS Paint – A web-based MS Paint remake by wybiral on Thursday January 18, 2018 @12:38AM (#16174945)
That was chaos...
[dead]
Re:JS Paint – A web-based MS Paint remake by dang on Thursday January 18, 2018 @05:07AM (#16175961)
Please don't.
Re:JS Paint – A web-based MS Paint remake by chrisper on Thursday January 18, 2018 @01:37AM (#16175184)
That is quite NSFW...
Re:JS Paint – A web-based MS Paint remake by AldousHaxley on Thursday January 18, 2018 @12:12AM (#16174866)
Cool! I built something similar a while back. A bit more structured (creating accounts and such), but with a bigger variety of drawing tools, and some social features like following, project collaboration, upvotes/downvotes, and chat. https://www.formgraph.com
Re:JS Paint – A web-based MS Paint remake by ngharo on Thursday January 18, 2018 @12:26PM (#16179017)
This is fun.

Try drawing programmatically:

  tools[7].paint(ctx, x, y);
then run:

  $canvas.trigger('change.session-hook');
to flush your canvas changes to the server.
Re:JS Paint – A web-based MS Paint remake by 1j01 on Saturday January 20, 2018 @10:23PM (#16196721)
To do it "properly", wrap it in `undoable`, then you don't need use `trigger`, and you can undo it normally. :)

    undoable(function(){
        for(var i = 0; i < 1; i += 1/10000){
            var angle = i * 500;
            var dist = i * 2;
            var x = canvas.width * (1/2 + Math.cos(angle) * dist);
            var y = canvas.height * (1/2 + Math.sin(angle) * dist);
            tools[7].paint(ctx, x, y);
        }
    });
Re:JS Paint – A web-based MS Paint remake by eclat on Thursday January 18, 2018 @10:49AM (#16177971)
This is amazing, thanks
Re:JS Paint – A web-based MS Paint remake by 1911z on Thursday January 18, 2018 @10:35AM (#16177859)
so much fun