Skip to content

Instantly share code, notes, and snippets.

View kardasis's full-sized avatar

Ari Kardasis kardasis

View GitHub Profile
@kardasis
kardasis / chargeBall.ts
Created January 21, 2024 16:46
Modeling Charges on the surface of a sphere
import { Vector } from 'p5'
type Vertex = {
position: Vector
velocity: Vector
neighbors: Vertex[]
charge: number
}
type Edge = [Vertex, Vertex]
0x17b3f1A3108c48Fc1ff44DBeDF41025460BD6361