A plain painting web app.
Plaint runs in the browser. You can install it on a phone as an app. It works without a network. Colours mix like real paint.
Draw with a finger, a pen, or the mouse. Many fingers can draw at the same time.
- Tap a colour to select it. New paint mixes with the paint below it.
- Drag the slider to set the pen size.
- Pull the toolbar down to show the mixing palette behind it.
- Use the menu (top left) to set the colours, the theme, and the pages.
- Push the space bar to show or hide the toolbar.
- Push Ctrl and the space bar to show or hide the mixing palette.
- Put a name at the end of the address to make a new page. Example:
/house. The app keeps the picture for each page.
python3 serve.py
Then open http://localhost:8765/. Do not use python3 -m http.server. It cannot serve the page addresses.
index.html— the page.style.css— the styles.app.js— the app. All the code is in this one file.mixbox.js,spectral.js— the pigment mixing engines. See THIRD-PARTY-NOTICES.md.manifest.webmanifest,sw.js,icons/— these make the app installable and let it work without a network.404.html— a generated copy ofindex.htmlfor GitHub Pages. Do not edit it. Runpython3 make404.pyafter each change toindex.html.makeicons.mjs— makes the icons. Runnode makeicons.mjsafter each change to the logo.
The code is MIT. See LICENSE. But mixbox.js is CC BY-NC, and it limits the app to non-commercial use. Delete mixbox.js to make the app fully MIT. The app then mixes with spectral.js.