Skip to content

Commit 1d8e00c

Browse files
authored
Merge pull request #272 from mategol/py-dev
Py dev
2 parents a80dcb7 + a554230 commit 1d8e00c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

resources/icons/author_icon.jpg

62.5 KB
Loading

resources/source_code/screen_manipulation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from win32gui import *
44
from win32con import *
55
from win32api import *
6-
from math import *
76
import random
7+
import math
88
import json
99
import time
1010
import os
@@ -182,10 +182,10 @@ def flash_screen(effect):
182182
elif effect == 'hypnotic_spirals':
183183
for angle in range(0, 180, 1):
184184
radius = 1000
185-
x1 = int(x / 2 + radius * cos(radians(angle)))
186-
y1 = int(y / 2 - radius * sin(radians(angle)))
187-
x2 = int(x / 2 + radius * cos(radians(angle + 180)))
188-
y2 = int(y / 2 - radius * sin(radians(angle + 180)))
185+
x1 = int(x / 2 + radius * math.cos(math.radians(angle)))
186+
y1 = int(y / 2 - radius * math.sin(math.radians(angle)))
187+
x2 = int(x / 2 + radius * math.cos(math.radians(angle + 180)))
188+
y2 = int(y / 2 - radius * math.sin(math.radians(angle + 180)))
189189
color = RGB(random.randrange(1), random.randrange(1), random.randrange(1))
190190
pen = CreatePen(PS_SOLID, 1, color)
191191
SelectObject(hdc, pen)

0 commit comments

Comments
 (0)