-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsharedcontext.py
More file actions
43 lines (36 loc) · 846 Bytes
/
sharedcontext.py
File metadata and controls
43 lines (36 loc) · 846 Bytes
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
# --
# File: sharedcontext.py
# Date: Sun Dec 26 10:31:10 PST 2021
#
# Shared context between UI and driver for creating animations
#
# --
from globalconfig import *
# --
# global::RunContext
# --
class RunContext:
def __init__(self):
self.algo = ""
self.image_w = 0
self.image_h = 0
self.red = 0.
self.green = 0.
self.blue = 0.
self.samples = 0
self.max_iter = 0
self.julia_c = complex(0)
self.c_width = hpf(0)
self.c_height = hpf(0)
self.c_real = hpf(0)
self.c_imag = hpf(0)
# --
# Class Waypoint
#
# Saved points for an animation
# --
class Waypoint:
def __init__(self, context, duration, image):
self.context = context
self.duration = duration
self.image = image