正在加载视频...
视频加载失败
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 次观看 • 3 年前 •via X (Twitter)
10 条评论

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!

![.Front Row Motorsports General Manager Jerry Freeze provides an update on Noah Gragson's future with the team for 2027. 🗣️ "We're working through the last details in his agreement [...] I look for something out of us in a few weeks on that." More →](https://image.24vids.com/tw-2079926781872611361/media/HN1iXmxX0AAFkP7.jpg)