mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Add another example and clarify
This commit is contained in:
parent
365551fd8d
commit
613318cc06
1 changed files with 10 additions and 1 deletions
|
@ -20,9 +20,18 @@ local frequency_pi = math.pi * 2 * angularFrequency
|
||||||
local frequency_tau = math.tau * angularFrequency
|
local frequency_tau = math.tau * angularFrequency
|
||||||
|
|
||||||
-- random gradient
|
-- random gradient
|
||||||
|
|
||||||
|
-- pi form
|
||||||
local r = math.random() * math.pi * 2
|
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)
|
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
|
## Design
|
||||||
|
|
Loading…
Add table
Reference in a new issue