What it does
MakeOcean takes windSpeed (a float) and choppiness (a float), and answers an integer.
Syntax
MakeOcean(windSpeed float, choppiness float) → integerParameters
| Name | Type |
|---|---|
| windSpeed | float |
| choppiness | float |
Every form returns
integer
Example · generated
ocean = MakeOcean(1.0, 1.0)DO Sync()LOOPMakeOcean is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.