Share your repls and programming experiences

← Back to all posts
Alpha Draw - Best Drawing app in repl.it!
LegendaryWolf (627)

SO this moi DRAWING APP with da boring ALPHA at first
Tell meh on how I can improve this!
Upvote if ya like (mods take this as a joke)

Comments
hotnewtop
mwilki7 (1137)

The brush is misplaced by the toolbar, I think you can fix it by adding:

function setPosition(e) 
{
    var rect = canvas.getBoundingClientRect();
    return {
        x: e.clientX - rect.left,
        y: e.clientY - rect.top
    };
}