Skip to content

Curves

Open with main menu g, then Games 7.

Nine common curves sampled and polyline-drawn in real time. Adjust amplitude a, frequency b, and phase p, and toggle phase animation.

Screenshots

curves-sincurves-lissa

Shortcuts

KeyAction
19Select curve
- =Amplitude a − / + (0.2–2.5)
, .Frequency b − / + (0.2–4.0)
q ePhase p − / +
Space / GOToggle animation (RUN / PAUSE)
rReset params and resume animation
hHelp

Curve list

KeyNameFormula
1SINa*sin(bx+p)
2COSa*cos(bx+p)
3PARAa*x^2
4CUBICa*x^3
5EXPa*e^(bx)
6LOGa*ln(bx)
7CIRCLEx^2+y^2=a^2
8HEARTcardioid
9LISSAa*sin(bt), a*sin(ct+p)

Notes

  • Top-left shows the curve name and formula; top-right shows params and RUN / PAUSE.
  • With animation on, phase advances with frequency; axes are centered and the curve is drawn as a cyan polyline.
  • Parametric curves (circle / heart / Lissajous) use denser sampling (180 points); function curves use 120.

Sparks for M5Stack Cardputer