Skip to content

Instantly share code, notes, and snippets.

@shiffman
shiffman / coding-train-2023.md
Last active February 19, 2024 23:35 — forked from dipamsen/coding-train-2023.md
Coding Train 2023 Goals and Plans

Coding Train 2023 Goals and Plans

  • Challenges: (Goal: 10 challenges)
    • Soft Body Physics Challenge (toxiclibs)
    • Pi Day - Buffon's Needle
    • The Climate Spiral
    • ⭐ Wolfram Elementary CA
    • Wave Function Collapse Overlapping model
    • 'Signed Distance Functions'
  • Secord's Algorithm (Dithering/Voronoi Stippling); info
void setup() {
size (400, 300); // make a canvas that's 300 x 300
//SETTING UP MY UNDERLYING GRID STRUCTURE
int numImages = 12;
int colWidth = 10; //column width
int rowHeight = 10; //row height
int colNum = width/colWidth;
int rowNum = height/rowHeight;
// Daniel Shiffman
// Programming from A to Z, Fall 2014
// https://github.com/shiffman/Programming-from-A-to-Z-F14
// This examples builds a very simple DOM visualization of concordance
// It reads the text one word a a time and animates the words growing according to their counts
var concordance;
var wutang;
var canvas;
// team 1 counter reaches 100, then:
if (!cannonLplaying) {
if (!MPE || ID == 0) {
cannonL.play();
cannonLplaying = true;
println("cannonLplaying");
// Game Over Overlay: THIS IS NOT LOADING
}
} else if (cannonL.time() > 6) {