Add another example and clarify

This commit is contained in:
Bryan Cardwell 2024-08-16 10:18:47 -05:00 committed by GitHub
parent 365551fd8d
commit 613318cc06
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -20,9 +20,18 @@ local frequency_pi = math.pi * 2 * angularFrequency
local frequency_tau = math.tau * angularFrequency
-- random gradient
-- pi form
local r = math.random() * math.pi * 2
local r_tau = math.random() * math.tau
-- tau form
local r = math.random() * math.tau
local gradient = vector(math.cos(r), math.sin(r), 0)
-- pi form
local radsPerSec = 3.5 * math.pi * 2 -- 3.5 revolutions per second
-- tau form
local radsPerSec = 3.5 * math.tau -- 3.5 revolutions per second
```
## Design