Screen-Savers/example.graph

27 lines
396 B
Plaintext

# Kyler Olsen
# Apr 2024
# Hypotrochoid Example
SCREEN {
Width Scale: 100,
Height Scale: 100,
FPS: 60,
}
R = 7;
r = 4;
d = 1;
s = 0;
e = 8*π;
ANIM offset {R:s <= x <= e,S:π/128}
GRAPH {
X: (R - r) * cos(t) + d * cos(((R - r) / r) * t),
Y: (R - r) * sin(t) - d * sin(((R - r) / r) * t),
T: ANIM {R:s+offset <= x <= e+offset,S:π/32},
C_w: ((t - s) / (e - s))
}