-
Notifications
You must be signed in to change notification settings - Fork 1
/
presets.py
65 lines (46 loc) · 1.06 KB
/
presets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from math import *
import numpy as np
import quaternion
# ====== SETTINGS ======
MAX_DEPTH = 25
ESCAPE_RADIUS = 4
SIZE = 500
SCALE = 2
mandelbrot=True
if mandelbrot:
def F1( C, t ):
return np.quaternion(0, 0, 0, 0), { "C":1/C if not C == np.quaternion(0, 0, 0, 0) else 0 }
def FN(Z, t, variables):
return Z*Z + variables["C"], variables
else:
def F1( C, t ):
return C, { "C":C, "D":np.quaternion(sin(t/20), cos(t/20), sin(t/20), cos(t/20))/2 }
def FN(Z, t, variables):
return Z*Z + variables["D"], variables
def ANGLES(t):
return [
t/10, t/10, t/18, t/20, t/91, t/20
]
FRAMES=640
N_PROCESSES = 8
VIDEO_NAME="fractal"
FPS=16
convert="linear"
"""Convert options:
binary
linear
logarithmic
expontial
"""
COLORMETHOD="averageComponents"
"""COLORMETHOD options:
escapeTime
averageOrbitDistance
averageComponents
"""
OutColor1=[153, 0, 76, 255]
OutColor2=[0, 204, 0, 255]
InColor1=[255, 255, 255, 255]
InColor2=[240, 240, 240, 255]
interpRange=InColor1+InColor2+OutColor1+OutColor2
USE_PROCESSES = True