JS Paint Alpha

There's a new version of JS Paint. Refresh to get it.
This instance of JS Paint is outdated compared to jspaint.app.
This version of JS Paint is outdated compared to jspaint.app.
Checking for updates...
Couldn't check for updates. You're offline. JS Paint may be outdated.

JS Paint is a web-based remake of MS Paint by Isaiah Odhner.

Read about the project and extra features on the README.

Request features and report bugs on GitHub or by email.

If you want to support the project & cover domain fees: paypal.me/IsaiahOdhner

The Accessibility Update

2020-12-20 Hello in several languages, eye gaze guiding a cursor, and a sea lion barking into a microphone.

Multi-Lingual Support

JS Paint is now largely localized into 26 languages.

How am I releasing so many languages at the initial release of multi-lingual support, you may ask? Well, this project has the somewhat unique opportunity to reuse localizations from an existing program, since it's primarily a remake of MS Paint.

I downloaded and installed 26 versions of Windows 98 in virtual machines, and extracted text from mspaint.exe in each one of them, using a set of scripts that I wrote to to help me automate the process.

To change the language, go to Extras > Language. Your prefered language may already be detected, if specified in system or browser settings.

26 languages, right off the bat!

For Arabic and Hebrew, right-to-left layout is supported!

I tried my hand at some Arabic calligraphy...

Calligraphy where the shapes of the tools in Paint make up Arabic words for them.

If you want to contribute translations, get in touch! I need to do some technical work to set up for community translations on a public platform, but I'm glad people have already expressed interest in helping translate! (I also want to simplify the language in various parts of the UI before asking people to translate them.)

Eye Gaze Mode

You can use eye gaze or head movements to control the cursor.

Eye Gaze Mode lets you control JS Paint without using your hands.

It's intended for use with an eye tracker, head tracker, or other coarse input scenario.

You don't need a thousand-dollar eye tracker device to play around with this, just a webcam and some free software.

I recommend Enable Viacam, which is not an eye gaze tracker, but rather a general video movement tracker that you can set up to track your head movement (or your torso or hand or anything else).

Eye tracking via a webcam has a ways to go, but it's also pretty amazing in its own right. Try GazePointer.

Eye gaze tracking requires significant calibration, and if the callibration is off, it's hard to use because you can't look where you want to look to interact with things. This is why I recommend head tracking (if that's an option for you), because then you can freely look around, and control the cursor independently, so if it gets offset, you can just tilt your head a bit.

Eye Gaze Mode is built mainly for people with movement disabilities like ALS or Cerebral Palsy, but it can also just be a sort of magical experience. It can also be frustrating, and takes some practice to master.

A good place to start is coloring lineart using just the Fill tool ():

  • Find coloring pages online, and copy and paste them into JS Paint.
  • You can convert them to black and white in Image > Attributes, and then switch back to Colors. (This makes it work better with the Fill tool.)
  • Enable Eye Gaze Mode with Extras > Eye Gaze Mode and note that it will start clicking where you hover. You can disable this dwell clicking with the eye icon in the bottom of the screen.
  • Make the image fill the screen with View > Zoom > Zoom To Window.

Bonus: Since I implemented a vertical color box for Eye Gaze Mode, I decided to make this available as a separate option. Access with Extras > Vertical Color Box.

Speech Recognition

The sea lion says "Art! Art! Art!" into a microphone.

Using only your voice, you can switch tools and colors, pan the view, click on buttons on the screen by name, and use most menu items. You can even say "draw a cat in a party hat" to have JS Paint try to sketch a cat in a party hat.

This feature pairs well with Eye Gaze Mode for a more complete hands free experience.

The feature is only available on Chrome, and only understands English. Note that Chrome sends your voice to Google servers.

Access with Extras > Speech Recognition. If this option is grayed out, your browser is not supported.

JS Paint will show what it thinks you said in the status bar at the bottom of the screen.

There are many synonyms for commands, and often you can do things with very short phrases like "Curve" to switch to the Curve tool. If it's not recognizing your voice for short commands like "Curve" or "Cut", you may want to try longer phrases like "Curve tool" or "Cut selection", as this helps it distinguish the sound as speech, rather than a cough for instance.

Edit Colors Dialog

I also implemented the Edit Colors dialog. Previously this used the native system color picker, and didn't work for some people.

Access with Colors > Edit Colors or double click a color in the palette to edit.

An animation morphing between JS Paint and MS Paint's color picking dialog. It's pretty close, other than the font.

Keyboard shortcuts are supported in this dialog, and for mobile devices with small screens, I made it treat adding custom colors as a separate screen.

Conclusion

JS Paint is way more accessible now. And futuristic. And cool.

Of course there's always more that could be done. Eye Gaze Mode could use brush stroke smoothing, and Speech Recognition could use general artificial intelligence.

I'd love to see people using JS Paint, especially the Eye Gaze Mode and Speech Recognition, so please, if you don't mind, record yourself on video and send me the video through this form. Maybe I could even make a compilation video. But mainly this lets me know what's actually important to people, and what's confusing, and it gives me motivation to work more on new features.

Winter Update

2019-12-20

Winter Theme

A new UI skin is available, under Extras > Themes > Winter, featuring winter and holiday icons, festive fonts, and a palette with seasonal colors and peppermint patterns.

Merry Christmas and happy Hanukkah!

Better History

New: Jump to any point in the document's history, forwards or backwards, with Edit > History or Ctrl+Shift+Y.
  • Click on Text in the history view to go back to text editing.
  • You can return to when a selection existed.
  • Note: these states are skipped over with normal Undo and Redo, so you need to use the History window.
  • Branching history: if you undo, and then make changes, you can get back to everything. Future states are preserved.
Warning: History is not saved with the autosave. Document history will be lost if you refresh the page, or close the tab, or if the tab crashes, or if you close or restart your browser, or likely if you're just on a phone and the mobile browser loses focus.

Improved Mobile Support

New: Use two fingers to pan the view.

I recently made it easier to grab handles for resizing things. With that, combined with multitouch panning, JS Paint is much more useable on a phone.

Caveat: It's slow on some devices, and parts of the interface are still too small for touch.

Polygon, Text, and Select

2019-12-04

Handles are now way easier to drag, with extended click targets, similar to Paint from Windows 7. It's not unreasonable to use with a touch screen now! This applies to selections, textboxes, and the main canvas handles.

Resizing things while zoomed in is finally fixed!

The Text tool now perfectly previews the pixels that will be placed on the canvas. What you see is what you get! Also it retains all browser editing behavior, like spellcheck, using a convoluted, yet elegant overlaying strategy. (I prototyped this here and here if you're interested.)

With the fill-only option selected, the Polygon tool now previews with inverted lines, like MS Paint does. (When you finish the polygon, the boundary of the shape matches the preview exactly, because it actually does draw a stroke, just the same color as the fill.)

Zoom To Mouse

2019-10-26

New: The Magnifier now lets you zoom to a specific location, showing a preview of the new viewport.

Also, when zooming out with the Magnifier, or changing the zoom from the toolbar or menus, the top left corner of the viewport is now kept anchored.

Also, pasting a selection will now go to the top left of the viewport, instead of the entire document.

The Grid, Custom Zoom, and Dynamic Cursors

2019-10-09

New: The Grid. Zoom to 4x+ and use View > Zoom > Show Grid or Ctrl+G to enable. This works with browser zoom as well to provide crisp gridlines even if you zoom in with your browser.

New: View > Zoom > Custom Zoom, including an actually-custom numerical zoom option, unlike MS Paint.

New: Dynamic cursors for brush and eraser, so you now have a preview of exactly where the tool will draw.

Also, in the event that your browser clears canvases to free up memory, you should be more likely to be able to undo to get back to a useful state.

Full Clipboard Support

2019-09-21

JS Paint now lets you copy real image data to the Clipboard, both with keyboard shortcuts and from the Edit menu. This feature is available in Chrome 76+. Other browsers don't support it yet, as of Sep 2019.

Also: paste a URL of an image, and JS Paint will load it. (This is an alternative to File > Load from URL.)