Skip to content

Instantly share code, notes, and snippets.

View nsbalbi's full-sized avatar

Nicholas Sbalbi nsbalbi

View GitHub Profile
@nsbalbi
nsbalbi / subdivide_2d.pde
Last active July 14, 2022 00:58
Subdivision 2D
// Processing Code By Nicholas Sbalbi (@nsbalbi)
// Associated tutorial: https://nsbalbi.github.io/Blog%20Posts/blog_subdivisions.html
// Github gist: https://gist.github.com/nsbalbi/4f891597fb9ac2f4ba7c24ecd005b539
// 7-9-2022
import java.util.ArrayList;
float border = 50; // border between main div and frame edge
Div div1; // intialize first div
@nsbalbi
nsbalbi / knot.pde
Last active August 21, 2022 23:17
Astral Knot
// Processing Code By Nicholas Sbalbi (@nsbalbi)
// Twitter post: https://twitter.com/nsbalbi/status/1413940646063317001
// Associated tutorial: https://nsbalbi.github.io/Blog%20Posts/blog_knot.html
// Github gist: https://gist.github.com/nsbalbi/ab299269bb0dbfd9c1296dc3bdaad39b
// 7-12-2021 Updated: 7-12-2022
// Motion blur via @beesandbombs
float t;
int[][] result;
int nFrames = 160;
@nsbalbi
nsbalbi / donut.pde
Last active July 11, 2022 19:56
Universe in a Donut
// Processing Code By Nicholas Sbalbi (@nsbalbi)
// Twitter post: https://twitter.com/nsbalbi/status/1406696979523047437
// Github gist: https://gist.github.com/nsbalbi/7c09f0101f90c45ecc391e7f64b29c10
// 6-22-2021
// Motion blur via @beesandbombs and inspiration from @etiennejcb
/*
Copyright (c) 2021 Nicholas Sbalbi
Permission is hereby granted, free of charge, to any person obtaining a copy