This commit is contained in:
Miloslav Ciz 2022-05-07 23:45:26 +02:00
parent 06861b5cc1
commit e5d4fefdcd
1 changed files with 13 additions and 0 deletions

13
functions.txt Normal file
View File

@ -0,0 +1,13 @@
This is kind of a chaotic function I made, it could be used e.g. for fractal
noise. The basis is a function
A * sin(0.1 * F * x + 7 * sin(0.07 * F * x)
where A is amplitude and F is frequency. Adding these together with increasing
frequency and decreasing amplitude creates a nice curve, e.g.:
10 * sin(0.1 * x + 7 * sin(0.07 * x)) +
5 * sin(0.2 * x + 7 * sin(0.14 * x)) +
2.5 * sin(0.4 * x + 7 * sin(0.28 * x)) +
1.125 * sin(0.8 * x + 7 * sin(0.56 * x))