phase := Frac(phase + Random * 0.05);
output.asFloat(Sin(phase * Pi * 2) * depth.asFloat);
| Procedure | Description |
|---|---|
function minS(const A, B: single): single; |
Return the smaller of two single-precision floating-point values |
function maxS(const A, B: single): single; |
Return the larger of two single-precision floating-point values |
function maxI(const A, B: integer): integer; |
Return the larger of two integer values |
function minI(const A, B: integer): integer; |
Return the smaller of two integer values |
function Pi: Extended; |
Return the mathematical constant π |
function Log(e: Extended): Extended; |
Return the natural logarithm of e |
function Exp(e: Extended): Extended; |
Return e raised to the power of e |
function Arctan(e: Extended): Extended; |
Return the arctangent of e |
function Arcsin(e: Extended): Extended; |
Return the arcsine of e |
function Arccos(e: Extended): Extended; |
Return the arccosine of e |
function Abs(d: Extended): Extended; |
Return the absolute value of an extended value |
function Abs(d: Int64): Int64; |
Return the absolute value of an integer |
function Power(Base, Exponent: Extended): Extended; |
Return Base raised to the power of Exponent |
function Sqr(d: Extended): Extended; |
Return the square of a number |
function Sqrt(d: Extended): Extended; |
Return the square root of a number |
function ArcTan(d: Extended): Extended; |
Return the arctangent of d |
function Ln(d: Extended): Extended; |
Return the natural logarithm of d |
function Sin(d: Extended): Extended; |
Return the sine of an angle |
function Cos(d: Extended): Extended; |
Return the cosine of an angle |
function Exp(d: Extended): Extended; |
Return e raised to the power of d |
function Round(d: Extended): Int64; |
Round a floating-point value to the nearest integer |
function Round(d: Extended; Precision: Int8): Extended; |
Round a floating-point value to a specified decimal precision |
function Frac(d: Extended): Extended; |
Return the fractional part of a number |
function Int(d: Extended): Extended; |
Return the integer part of a number |
function Trunc(d: Extended): Int64; |
Truncate the fractional part of a number |
function Ceil(d: Extended): Int64; |
Return the smallest integer greater than or equal to d |
function Floor(d: Extended): Int64; |
Return the largest integer less than or equal to d |
function Random(Min, Max: Int64): Int64; |
Return a random integer between Min and Max |
function Random(l: Int64): Int64; |
Return a random integer from 0 to l - 1 |
function Random: Extended; |
Return a random floating-point number between 0.0 and 1.0 |
procedure Randomize; |
Initialize the random number generator with a new seed |
version 7.0.250121
Edit All Pages