gnykka

Joined 7 years ago

Karma
103
Submissions
17
Member since
May 28
Co-founder of https://slaylines.io, frontend developer, traveler. Reach me by email or on social networks as @gnykka.
View on Hacker News

Recent submissions

Comment · 5 years ago
Thanks! Yes, you are right. Whitelist or blacklist option is a good idea
Comment · 6 years ago
I simply loved the examples on paper.js webpage and just wanted to try it
Comment · 6 years ago
Actually I made a switch at first as I started with Two.js and there are 3 types (svg, canvas and webgl). But then there was Paper.js which only had simple canvas so I removed the switch at all and used the fastest renderers for every engine (webgl or canvas).
Comment · 6 years ago
I wasn't thinking about this as a menu, this are just links to switch between renderers. Count saving is a good point, I'll add this feature
Comment · 6 years ago
I made a change to loops to use for() cycle, thanks
Comment · 6 years ago
Good point. Usually I like to use map or reduce for arrays but here simple for is easier.
Comment · 6 years ago
My point was more to compare libraries than to create the best canvas performance. But you are right: simple plain canvas is usually pretty fast.
Comment · 6 years ago
WebGL is the fastest for now. But not all libraries and browsers support it
Comment · 6 years ago
Yes, I agree. I also found out that Two.js redraws 5k elements even a little bit faster but it takes a couple of seconds to render them for the first time.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton