Show HN: Inkwash, a watercolor sketching app and explanation (johnowhitaker.github.io)

250 points by Yenrabbit ↗ HN
I've made a drawing app based on my physical sketching practice, using fluid sim and some shader tricks to mimic watercolor-style ink washes. Best used on iPad or with a drawing tablet. The linked article shows how the core engine works, with plenty of little interactive demos. It was fun to make, sharing in hopes others find it fun too :)

24 comments

[ 0.21 ms ] story [ 57.5 ms ] thread
i like it a lot. looks beautiful
Nice visualizations - have you tried Rebelle? They have an online version that lets you play with the watercolor/brushes of the painting software so you can see the colors drying on the canvas.

https://www.escapemotions.com/experiments/rebelle/index.php

Oooh yeah I forgot how incredible that was! They really put care into how the pigments mix and move. I used to love watching timelapses of people doing art in rebelle.
I never got into rebelle, though this demo is pretty cool.

I used to use expressii, and always thought it was one of the most under rated painting apps. Has a very natural feel to it.

https://www.expresii.com/

looks beautiful! i wanted to bookmark it because sometimes i need to explain some geometry to my son, and i have to download some sketching app each time, but with this I could just open and paint. There's one problem however. When on mobile, the page does not hid the control panel (mode, ink, etc) and it takes a large portion of the screen.
Ah yeah that's not ideal, fixed. I like the menu sticking around on iPad, but it now gets out of the way on smaller phone screens. Thanks for the reminder, I'd been meaning to do this! (Also, tldraw.com is fantastic for quick+easy diagrams and works great on mobile if you want a better whiteboard that isn't so art-focused :) )
The interactive explanation is the best part — being able to scrub the sim while reading the writeup made it actually click.
This is so satisfying! I love how the blending looks and fluidly works.

I've always admired watercolor animations (especially the ones in the video game Gris) and wanted to bring that to the web, but didn't know how.

This is awesome! The strength of the flow/advection is a bit too high imo. Maybe increase some viscosity parameter?
The examples display a degree of vorticity that I have never seen in real life watercoloring. They look great superficially, but they look super weird at reasonable inspection. Water on paper does not flow nearly so freely.
Could one fix the paper on the bottom of in a container with just enough water in it to get a similar effect?
There's a 'flow' slider I turn way down when actually painting with it, but I leave it high by default because that's the most "cool" feeling setting for a first interaction :)
I like that adding pen strokes to a watery section continues to blend in. Ima copy you now and become a cool art person
As an amateur watercolour artist (shameless plug: https://www.instagram.com/p/DBlKG5cMPxa) I have to say the feeling your made with this wash is gorgeous. Back in the analogue world - paper grain and type/brand has a lot to do with it. Watercolour is really about unpredictability - it's about taking advantage of this unpredictability in terms of how the water travels down the grain and the impact that it makes, combined with light/shadow and "confidence" the artist brings with the brush. So of course it's never going to be truly transferrable digitally, but I still love the work you put into this.
It is very fun and aesthetically pleasing also, great job.
Why is just having the web page loaded in a browser's (Firefox) tab ramping up the iGPU on my computer to 75%? The GPU load is consistently 75% whether I'm drawing or just have an untouched web page.

MS Edge has the same behavior with GPU loading regardless of drawing or not, but the GPU is at 50%.

Did you read the article? Each demo canvas is interactive and running multiple shaders per frame. They could probably reduce power consumption by having a play button on each demo canvas, or pausing the simulation after a sufficient amount of time has passed and things have stabilized, but yeah. The reason your GPU is being used is because it's being used.
this is really gorgeous. I build ed tech apps for kids, which often includes whiteboard. I am always in search of inspiration to make it more tactile and less MS Paint, love this!
This is really charming. The interactive demos make the technical explanation much more approachable. One feature that might be fun is replay/exporting the stroke process, since the wash spreading is part of what makes it satisfying to watch.
Beautiful! Love the fluidity. Great for calligraphy.

> While I've tidied up a bit, the rest of this article contains plenty of AI-witten prose.

This is the right approach. I have no problem with someone using AI to draft a presentation (especially a technical one like this) -- just say it upfront and then people have no reason to get upset.

Very cool app and very well explained throughout! I enjoyed peeking under the hood and learning those details like sampling a lower res flow field. Thank you for creating and sharing this
Very impressive work, thanks for sharing!