Video wird geladen...
Video konnte nicht geladen werden
Over the last few weeks I was working on SwissGL, tiny JS graphics library with a single function that does everything. Demos: Code:
59,011 Aufrufe • vor 3 Jahren •via X (Twitter)
10 Kommentare

The library is just ~500loc, no dependencies. I made it because I got tired writing WebGL boilerplates for gpu simulations and visualizations again and again. The focus is in brevity and expressivity, none of demos I made it longer than 100 lines

This is so cool!! But where was this a few months ago when I gave up on web graphics frameworks and decided to teach myself webGL?? *cries in precision highp float*

Don't worry, you still need to write everything in glsl. SwissGL is there to take care of boring verbose WebGL stuff

Physarum is so good! amazing work

This is awesome! Thank you! Will try it out. And I think it still pays off learning webgl and understanding what’s going on even when using great tools like this. Webgl is horrible to debug if you don’t have a clue. Been there…

This tiny library impies good understanding of WebGL, it's just a helper handle object management, so that we could focus on interesting parts

Is there a way i could turn this into a music visualizer?

hey, does it support loading / drawing of (image) textures?

There is 'data' attribute, but I didn't try passing anything other than TypedArray yet (Spectrogram demo). I need to make an example on using external textures

@ajflores1604 Thanks for pex-context mention!
