74 posts

Konva

Posts about Konva.js, the JavaScript library adding an object model and other super powers to the HTML5 canvas lib.

Konva - Text what can it do?

Konva - Text what can it do?

VanquishedWombat ―

I'm generally interested in text layout for couple of side projects so I'm keen to see what Konva can do for me with its Text object. A little research shows the HTML canvas is a little light on text support, but Konva has your back...within limits...

Konva Text Text layout
Konva - Star rating control

Konva - Star rating control

VanquishedWombat ―

Someone on Discord asked it it was possible to make a star rating widget thing with Konva - the holes in the stars sounded like an interesting challenge. Here we go… TLDR: See the demo and code. This is a Vanilla JS solution, but @ivor adapted it for React here. The key technique for making holes in some foreground object is to set up clipping functions. In Konva, a clipFunc defines

Konva Tricks