disable rect for now
This commit is contained in:
parent
d5a61eb75d
commit
8da68560f2
2 changed files with 22 additions and 22 deletions
|
@ -43,7 +43,7 @@ class Presets:
|
|||
self.shuffles = list(iter(self)) * 2
|
||||
|
||||
def default(self) -> List[Effect]:
|
||||
return self.Rectangle()
|
||||
return self.DoubleBouncingSpotsColorWheel()
|
||||
|
||||
def __getitem__(self, idx: str) -> List[Effect]:
|
||||
return getattr(self, idx)()
|
||||
|
@ -578,20 +578,20 @@ class Presets:
|
|||
)
|
||||
]
|
||||
|
||||
def Rectangle(self) -> List[Effect]:
|
||||
return [
|
||||
Rectangle(
|
||||
bounds=self.bounds,
|
||||
color=color_wheel(increase=(75 if self.beat_reactive else 1)),
|
||||
size=int(self.bounds.height*0.9),
|
||||
aspect=1.0,
|
||||
rot_speed=0.5,
|
||||
thickness=80,
|
||||
mover=transform_bounce(
|
||||
bounds=self.bounds,
|
||||
velocity=(0.1, 0.5),
|
||||
x_factor=(0.5, 1),
|
||||
y_factor=(0.1, 0.3),
|
||||
),
|
||||
)
|
||||
]
|
||||
# def Rectangle(self) -> List[Effect]:
|
||||
# return [
|
||||
# Rectangle(
|
||||
# bounds=self.bounds,
|
||||
# color=color_wheel(increase=(75 if self.beat_reactive else 1)),
|
||||
# size=int(self.bounds.height*0.9),
|
||||
# aspect=1.0,
|
||||
# rot_speed=0.5,
|
||||
# thickness=80,
|
||||
# mover=transform_bounce(
|
||||
# bounds=self.bounds,
|
||||
# velocity=(0.1, 0.5),
|
||||
# x_factor=(0.5, 1),
|
||||
# y_factor=(0.1, 0.3),
|
||||
# ),
|
||||
# )
|
||||
# ]
|
||||
|
|
|
@ -41,11 +41,11 @@ class Rectangle(MovingEffect):
|
|||
self.thickness = thickness
|
||||
|
||||
x = calc_x(aspect, thickness, size)
|
||||
print(x)
|
||||
print(size)
|
||||
# print(x)
|
||||
# print(size)
|
||||
|
||||
self.rsize = (x, (x + 2 * thickness) * aspect - 2 * thickness)
|
||||
print(self.rsize)
|
||||
# print(self.rsize)
|
||||
|
||||
self.rect_image = pg.Surface(self.rsize)
|
||||
self.rect_image.fill(Colors.Black)
|
||||
|
@ -112,7 +112,7 @@ class Rectangle(MovingEffect):
|
|||
# )
|
||||
|
||||
r2 = pg.transform.rotate(self.rect_image, self.angle)
|
||||
print(self.image.get_width()-r2.get_width())
|
||||
# print(self.image.get_width()-r2.get_width())
|
||||
|
||||
self.image.blit(
|
||||
r2,
|
||||
|
|
Loading…
Reference in a new issue