News for hackers. Stuff that matters.
Re:MSPaint in JavaScript by mrtksn on Tuesday February 25, 2020 @02:32PM (#22416471)
Ah, this could be used as the missing paint in macOS. Even taking a screenshot and dragging it inside the browser works as expected. Is there an easy wat to turn this into an app that can live locally?

Paint is the only thing I miss about Windows.

Re:MSPaint in JavaScript by KMnO4 on Tuesday February 25, 2020 @03:07PM (#22416880)
There’s an app called Fluid which allows you to run websites as thin Mac apps. It uses Safari instead of Electron so it’s not incredibly bloated.

https://fluidapp.com/

Re:MSPaint in JavaScript by jchw on Tuesday February 25, 2020 @02:40PM (#22416570)
Presumably Electron, but it may be slightly more comfortable to compile something like KolourPaint for macOS instead.
Re:MSPaint in JavaScript by ognarb on Wednesday February 26, 2020 @06:06AM (#22422012)
You don't need to compile it, there is already a precompiled version for macOS: https://binary-factory.kde.org/job/Kolourpaint_Nightly_macos...
Re:MSPaint in JavaScript by jchw on Wednesday February 26, 2020 @01:58PM (#22426007)
Ah, that’s cool, I didn’t know. Seems like a winning solution to me.
Re:MSPaint in JavaScript by mrtksn on Tuesday February 25, 2020 @03:05PM (#22416855)
There's something special about MS Paint. It feels so natural to use it, the way it works makes sense.

These similar products feel works for some reason.

On macOS and Linux, we lack the basic graphics editor.

Re:MSPaint in JavaScript by jchw on Tuesday February 25, 2020 @03:07PM (#22416873)
Have you tried Kolourpaint? It is pretty similar to MS Paint.
Re:MSPaint in JavaScript by mrtksn on Tuesday February 25, 2020 @03:39PM (#22417187)
No, I have not. It looks promising but I suspect that there are some poor defaults in the tools leading to bad results aesthetically. Looked at some usage videos and there were some very ugly rectangle corners.

See, for the tools in MS Paint are very basic and have very nice defaults so it usually yields non-disturbing results. Good defaults are important.

Re:MSPaint in JavaScript by Luff on Tuesday February 25, 2020 @02:44PM (#22416617)
Download and unzip NW.js, create a file called package.json with the following text:

  { "name": "JSPaint", "main": "https://jspaint.app/" }
Place it in the extracted folder, then start nw.
Re:MSPaint in JavaScript by barbs on Tuesday February 25, 2020 @02:55PM (#22416739)
I've not used NW.js before but I'm guessing that won't work offline?
Re:MSPaint in JavaScript by Luff on Tuesday February 25, 2020 @02:58PM (#22416776)
It works if the page is a PWA with offline support. But no, JSPaint doesn't seem to be one :/

You could probably use a local caching proxy if your love for MSPaint is true and pure.

Re:MSPaint in JavaScript by SlashmanX on Tuesday February 25, 2020 @03:00PM (#22416792)
The author has started work on locally running Electron App [0]

[0] - https://github.com/1j01/jspaint#desktop-app

Re:MSPaint in JavaScript by krapp on Wednesday February 26, 2020 @06:19AM (#22422060)
~100 Mb to wrap less than two Mb of code in a browser runtime... to ship an application that already runs in a browser.

To make a "native" version of an app orders of magnitude larger than the original, because no one bothers to make actual native apps anymore.

This is not the best possible timeline.

Re:MSPaint in JavaScript by realslimjd on Tuesday February 25, 2020 @09:57PM (#22419873)
You might be interested in Paintbrush [0]. It's a free open source native app that's extremely close to MS Paint in functionality.

[0] - https://paintbrush.sourceforge.io

Re:MSPaint in JavaScript by barbs on Wednesday February 26, 2020 @08:14AM (#22422587)
I used that for a bit, but it's a bit buggy and hasn't been updated since 2010
Re:MSPaint in JavaScript by microcolonel on Tuesday February 25, 2020 @03:16PM (#22416971)
Normal MS Paint runs fine in Wine, I know somebody who uses it regularly.
Re:MSPaint in JavaScript by Fnoord on Tuesday February 25, 2020 @03:08PM (#22416892)
Are there not image manipulation programs on macOS to your liking?
Re:MSPaint in JavaScript by mrtksn on Tuesday February 25, 2020 @03:37PM (#22417164)
The advanced once are phenomenal but when I need something very simple Preview or Markup doesn't cut it and the advanced ones are overkill.

For example, I want to create a very basic image where I would use other images and screenshots and I would cover something to hide, resize some of the images I use and put a few words of text to indicate something.

This is so very easy in MS Paint. The app will open in 0.1s, you will configure the size of your canvas by dragging the dot in the corner, copy-paste your images and drag and resize them by moving the dots then you can select and delete the parts you don't want and when you are happy with your arrangements you will use the rectangle drawing tool to cover some places and the text to mark the places you want to mark. Everything is fast, you don't have to think about layers, masks, vectors or anything like that and the app is very responsive.

Preview has some tools but they are cumbersome to use and there's no way to bring in other images.

Re:MSPaint in JavaScript by gberger on Wednesday February 26, 2020 @06:32AM (#22422115)
You can bring in other images into Preview by pasting
Re:MSPaint in JavaScript by pikuseru on Tuesday February 25, 2020 @04:08PM (#22417478)
Pixelmator’s alright
Re:MSPaint in JavaScript by Fnoord on Wednesday February 26, 2020 @10:27AM (#22423770)
I second this. I use Pixelmator (Pro) for image manipulation on macOS. I prefer applications which are cross-platform and are "easy to learn, difficult to master" (MS Paint and MS Office come to mind) while still adhering to DE/WM (in macOS case, Aqua) UI. With regards to image manipulation I don't know of any. Perhaps Krita.