HSWAW fork of JSPaint https://pixel.label.hackerspace.pl
 
 
 
 
Go to file
Isaiah Odhner 3931434314 Selection.prototype.cut_out_background
Removed four instances of the word "hack" (or derivatives)
This will make it easier to transition from cutting the selection upon
instantiation to cutting when you do something with it.
2014-10-24 18:44:51 -04:00
images Multiplayer user presence: cursors 2014-10-18 02:34:44 -04:00
lib Multiplayer 2014-10-17 18:51:51 -04:00
src Selection.prototype.cut_out_background 2014-10-24 18:44:51 -04:00
CNAME jspaint.ml 2014-10-01 17:41:45 -04:00
README.md Free-Form Select 2014-10-24 03:17:24 -04:00
TODO.md Fix dialogue buttons being messed up (with hacks) 2014-10-24 17:38:39 -04:00
chrome-app.js chrome app (icons!) 2014-03-06 21:35:11 -05:00
classic.css Fix dialogue buttons being messed up (with hacks) 2014-10-24 17:38:39 -04:00
index.html Multiplayer 2014-10-17 18:51:51 -04:00
layout.css Flip / Rotate form window 2014-09-23 12:22:01 -04:00
manifest.json Add manifest.webapp for Firefox OS app in future 2014-06-08 21:41:57 -04:00
manifest.webapp Add manifest.webapp for Firefox OS app in future 2014-06-08 21:41:57 -04:00
print.css drag windows; windows start centered 2014-06-08 15:55:37 -04:00

README.md

JS Paint

A nice web-based MS Paint remake and more... Try it out!

The goal is to remake MS Paint (including its little-known features), improve on it, and to extend the types of images it can edit.

You can also install it as a Chrome app.

Current improvements include:

  • Unlimited undos/redos (as opposed to a measly 3 in Windows XP, or a somewhat less measly but still annoying 50 in Windows 7)
  • Edit transparent images! To create a transparent image, go to Image > Attributes... and select Transparent, then Okay, and then Image > Clear Image
  • Create an animated GIF from the current document history with Ctrl+Shift+G (pretty nifty, you should try it out)
  • Cross-platform, I guess
  • You can shoot at it Asteroids style
  • When you do Edit > Paste From... you can select transparent images and animated GIFs. You can even paste a transparent animated GIF and then hold Shift while dragging the selection to smear it across the canvas while it animates!
  • It can open SVG files (by accident)
  • You can crop the image by making a selection while holding Ctrl
  • Rudimentary multiplayer support: Start up a session at jspaint.ml/#session:bad455 and send the link to your friends! (Currently when someone changes the canvas, you're annoyingly interrupted. It's very rudimentary.)

Possible improvements include:

  • Extended Editing
  • Mobile support
  • Proportionally resize the selection or canvas by holding Shift
  • After adding text, save as SVG or HTML with selectable text
  • Alt as a shortcut for the eyedropper, as long as it doesn't conflict with keyboard navigation of menus
  • Loading palettes (I've started a project for this)
  • Rotate image by arbitrary angle
  • Alternate themes (You can already style it like any website with browser extensions like Stylebot or Stylish)

A lot of stuff isn't done yet:

  • Magnification
  • A couple menu items
  • Shape styles on most of the shape tools
  • A lot of stuff

Clipboard support is somewhat limited. You can copy with Ctrl+C, cut with Ctrl+X, and paste with Ctrl+V, but copied data can only be pasted into other instances of JS Paint. To use the menu items, you need to install the Chrome app. The menu items will still be grayed out, though.

Staying True to the Original

Ah yes, good old paint. Not the one with the ribbons or the new one with the interface that can take up nearly half the screen.

Windows 95, 98, and XP were the golden years of paint. You had a tool box and a color box, a foreground color and a background color, and that was all you needed.

Things were simple.

But now we want transparency. And we want to undo more than three actions. We can't just keep using the old paint.

So that's why I'm making jspaint. I want to bring good old paint into the modern era. Also, it's totally retro. There might be themes later, though. What was this section titled? Oh, um yeah I'm doing that too.

Extended Editing

I want to make jspaint to be able to edit...

  • Transparent PNGs (the main thing that's lacking in old ms paint) - This works!
  • Animated GIFs (yes, that entails a fully featured (but simple) animation editor) - You can currently only make GIFs of the document history with Ctrl+Shift+G
  • Animated Transparent APNGs (better than GIFs, but with less support)
  • Multi-size Icons (ICO for windows and ICNS for mac)
  • Scalable Vector Graphics (kidding) - Actually, it could always open SVG files in browsers that can handle SVGs, and I've made it try not to save over the original SVG. That's pretty decent SVG support, for a 100% raster image editor.
  • Text Files (just kidding)

Did you know?

  • These Tips and Tricks from a tutorial for MS Paint also work in JS Paint if they have a checkmark:

    • Brush Scaling (+ & - on the Numpad to adjust brush size)
    • "Custom Brushes" (hold Shift and drag the selection to smear it)
    • The 'Stamp' "Tool" (hold Shift and click the selection to stamp it)
    • Image Scaling (+ & - on the Numpad to scale the selection by factors of 2)
    • Color Replacement (right mouse button in Eraser selectively replaces the foreground color with the background color)
    • The Grid (Ctrl+G & Zoom to 6x+)
    • Quick Undo (Pressing a second mouse button cancels the action you were performing. I also made it redoable, in case you do it by accident!)
    • Scroll Wheel Bug (Hmm, let's maybe not recreate this? Ah who am I kidding I'll make it an option)