File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33from win32gui import *
44from win32con import *
55from win32api import *
6- from math import *
76import random
7+ import math
88import json
99import time
1010import 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 )
You can’t perform that action at this time.
0 commit comments