Skip to content

Instantly share code, notes, and snippets.

View sspboyd's full-sized avatar
🎯
Focusing

Stephen Boyd sspboyd

🎯
Focusing
View GitHub Profile
@sspboyd
sspboyd / math_constants.js
Created August 9, 2022 17:04
The following are a collection of mathematical constants I use in my coding/art practice. The constants are typically used to modulate the relationships between visual elements on screen or bias the selection between different options.
// Stephen Boyd, @sspboyd
// August 2022.
// The following are a collection of mathematical constants I use in virtually
// all of my coding/art practice.
// The constants are typically used to modulate the relationships between
// visual elements on screen or bias the selection between different options.
const SQR_2 = 1.4142135623730951;
const TWO_PI = 6.283185307179586;