Skip to main content

2 posts tagged with "gpu"

View All Tags

Using your GPU to make a lava lamp

· One min read
Louis Roehrs
Architect

We can use the GPUs and some trignometric functions to make a digital, real-time lava lamp. If you only see a black square, try a different browser that supports WebGL and be sure to turn on the WebGL support for your browser.

Mandelbrot with WebGPU

· 3 min read
Louis Roehrs
Architect

Web GPU Mandlebrot

This Mandlebrot set is being displayed in your browser using your GPU. This is not a movie. It is being calculated and rendered in realtime. If you only see a black square, try a different browser that supports WebGL and be sure to turn on the WebGL support for your browser. If only Benoit Mandlebrot, an IBMer, had a GPU on which to run his JavaScript code.


We can build a gpu kernal which simply provides the GPU with the code in JavaScript to tell the GPU what color to set the pixel at the given x, y coordinate and bind it to an HTML canvas.

Get this. It will even run on an AppleWatch!


Full Screen