Skip to content

Instantly share code, notes, and snippets.

View ppkn's full-sized avatar
🦥

Daniel Pipkin ppkn

🦥
View GitHub Profile
@ppkn
ppkn / bunnySketch.ts
Created February 2, 2025 22:38
Parquet deformation sketch with hexagonal "bunnies"
import p5 from "p5";
export function bunnySketch(p: p5) {
const hexSize = 28;
const hexWidth = 2 * hexSize;
const hexHeight = Math.sqrt(3) * hexSize;
const horizontalSpacing = (hexWidth * 3) / 4;
const verticalSpcaing = hexHeight / 2;
let numRows = Math.ceil(p.windowHeight / verticalSpcaing) + 1;
let numCols = Math.ceil(p.windowWidth / horizontalSpacing) + 1;
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "tagStandard52h13.c"
#define NUM_CODES 48714
int main(int argc, char *argv[]) {
if (argc != 2) {