Skip to content

Instantly share code, notes, and snippets.

View wschutzer's full-sized avatar

Waldeck Schützer, Ph.D. wschutzer

View GitHub Profile
@wschutzer
wschutzer / sketch_241005a_fields.pde
Last active January 6, 2025 21:57
Particles moving in a vector field defined as the gradient of a two-variable function
/* Particles following vector fields
* ---------------------------------
*
* Copyright (C) 2025 Waldeck Schutzer (@infinitymathart)
* Based on code by Étienne Jacob (@etinjcb)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@wschutzer
wschutzer / ThreeBodySystem.cpp
Created February 12, 2025 14:30
The 3-body Problem
/* The 3-body Problem (actually n-body)
* -------------------------------------
*
* Copyright (C) 2025 Waldeck Schutzer <[email protected]> (@infinitymathart)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@wschutzer
wschutzer / sketch_250503a_disks.pde
Created May 4, 2025 13:36
Black and white sliding disks
/* Sliding disks with offsets
* --------------------------
*
* This program draws two superimposed grids of black and white disks. One grid remains
* stationary and the other grid moves from right to left. As it does, optical effects
* are created which depends on small horizontal offsets applied to the disks.
*
* This code uses shaders to aproximate the motion blur effect by averaging the pixels along a sequence
* of frames.
*