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
|
self.shuffles = list(iter(self)) * 2
|
||||||
|
|
||||||
def default(self) -> List[Effect]:
|
def default(self) -> List[Effect]:
|
||||||
return self.Rectangle()
|
return self.DoubleBouncingSpotsColorWheel()
|
||||||
|
|
||||||
def __getitem__(self, idx: str) -> List[Effect]:
|
def __getitem__(self, idx: str) -> List[Effect]:
|
||||||
return getattr(self, idx)()
|
return getattr(self, idx)()
|
||||||
|
@ -578,20 +578,20 @@ class Presets:
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
def Rectangle(self) -> List[Effect]:
|
# def Rectangle(self) -> List[Effect]:
|
||||||
return [
|
# return [
|
||||||
Rectangle(
|
# Rectangle(
|
||||||
bounds=self.bounds,
|
# bounds=self.bounds,
|
||||||
color=color_wheel(increase=(75 if self.beat_reactive else 1)),
|
# color=color_wheel(increase=(75 if self.beat_reactive else 1)),
|
||||||
size=int(self.bounds.height*0.9),
|
# size=int(self.bounds.height*0.9),
|
||||||
aspect=1.0,
|
# aspect=1.0,
|
||||||
rot_speed=0.5,
|
# rot_speed=0.5,
|
||||||
thickness=80,
|
# thickness=80,
|
||||||
mover=transform_bounce(
|
# mover=transform_bounce(
|
||||||
bounds=self.bounds,
|
# bounds=self.bounds,
|
||||||
velocity=(0.1, 0.5),
|
# velocity=(0.1, 0.5),
|
||||||
x_factor=(0.5, 1),
|
# x_factor=(0.5, 1),
|
||||||
y_factor=(0.1, 0.3),
|
# y_factor=(0.1, 0.3),
|
||||||
),
|
# ),
|
||||||
)
|
# )
|
||||||
]
|
# ]
|
||||||
|
|
|
@ -41,11 +41,11 @@ class Rectangle(MovingEffect):
|
||||||
self.thickness = thickness
|
self.thickness = thickness
|
||||||
|
|
||||||
x = calc_x(aspect, thickness, size)
|
x = calc_x(aspect, thickness, size)
|
||||||
print(x)
|
# print(x)
|
||||||
print(size)
|
# print(size)
|
||||||
|
|
||||||
self.rsize = (x, (x + 2 * thickness) * aspect - 2 * thickness)
|
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 = pg.Surface(self.rsize)
|
||||||
self.rect_image.fill(Colors.Black)
|
self.rect_image.fill(Colors.Black)
|
||||||
|
@ -112,7 +112,7 @@ class Rectangle(MovingEffect):
|
||||||
# )
|
# )
|
||||||
|
|
||||||
r2 = pg.transform.rotate(self.rect_image, self.angle)
|
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(
|
self.image.blit(
|
||||||
r2,
|
r2,
|
||||||
|
|
Loading…
Reference in a new issue