diff --git a/effects/presets.py b/effects/presets.py index 711e290..d1085f0 100644 --- a/effects/presets.py +++ b/effects/presets.py @@ -12,7 +12,7 @@ from effects.drops import Drops from effects.bouncingspot import BouncingSpot from effects.doublespot import DoubleSpot from effects.moonflower import Moonflower -from effects.movingwave import MovingWave +from effects.rainbowwave import RainbowWave from effects.rotatingpoly import RotatingPoly from effects.scanreticle import ScanReticle from effects.spiro import Spiro @@ -98,14 +98,14 @@ class Presets: def CollidingWaves(self) -> List[Effect]: return [ - MovingWave( + RainbowWave( bounds=pg.rect.Rect(0, 0, self.bounds.width, self.bounds.height), wave_count=5, wave_height=self.bounds.height // 6, thickness=20, mover=transform_oscillate(self.bounds, 60, (0, 0)), ), - MovingWave( + RainbowWave( bounds=pg.rect.Rect(0, 0, self.bounds.width, self.bounds.height), hue=180, wave_count=5, @@ -121,7 +121,7 @@ class Presets: def FallingWave(self) -> List[Effect]: bounds = pg.rect.Rect(0, 0, self.bounds.width, self.bounds.height // 3) return [ - MovingWave( + RainbowWave( bounds=bounds, wave_count=8, wave_height=self.bounds.height // 8, diff --git a/effects/movingwave.py b/effects/rainbowwave.py similarity index 95% rename from effects/movingwave.py rename to effects/rainbowwave.py index 7adab9e..0bf2602 100644 --- a/effects/movingwave.py +++ b/effects/rainbowwave.py @@ -1,12 +1,12 @@ -from typing import Any, Optional, Tuple +from typing import Any, Optional import pygame as pg from effects.effect import MovingEffect from util.color import Colors, rainbow_surface -from util.transform import PositionGenerator, transform_oscillate +from util.transform import PositionGenerator import math -class MovingWave(MovingEffect): +class RainbowWave(MovingEffect): def __init__( self, bounds: pg.Rect,