CocktailJS [projected vectors]

Hi community!

Picture:


Demo:https://codepen.io/prisoner849/full/wBaMvMB

When you’ve got a screen, a bunch of vertices, and a projection matrix, what would you do with all this stuff?
My idea is to draw SDF 2D-lines between projected points.

Here is the prototype: https://codepen.io/prisoner849/full/xbGwoZj

And when I created that flat logo of CocktailJS, I thought “That glass needs to be a surface of revolution”.
Video of the result:

Demo: https://codepen.io/prisoner849/full/ogXLLXG

8 Likes

I’ll take one with a zest of TS. Tree shaked not bundled, thanks! :sweat_smile:

1 Like