Skip to content

Commit

Permalink
Merge pull request #70 from FNBBDevs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ethanlchristensen authored Aug 24, 2024
2 parents e049996 + afeaa66 commit 661bdfd
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 245 deletions.
223 changes: 152 additions & 71 deletions bruhanimate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import sys


if sys.platform == "win32":
from .bruheffect import AudioEffect
from .demos import audio_demo


from .bruheffect import (
BaseEffect,
StaticEffect,
Expand Down Expand Up @@ -45,7 +53,7 @@
FLAKE_FLIPS,
TWINKLE_COLORS,
FLAKES,
VALID_INTERFACES
VALID_INTERFACES,
)

from .bruhrenderer import (
Expand All @@ -70,13 +78,12 @@
rain_demo,
offset_demo,
static_demo,
audio_demo,
chatbot_demo,
)

__version__ = "0.2.62"

__version__ = "0.2.64"
__valid_demos__ = [
"audio_demo",
"static_demo",
"offset_demo",
"matrix_demo",
Expand All @@ -90,70 +97,144 @@
"noise_demo" "holiday",
]

__all__ = [
"Screen",
"plasma_demo",
"line_demo",
"holiday",
"snow_demo",
"stars_demo",
"twinkle_demo",
"noise_demo",
"matrix_demo",
"gol_demo",
"rain_demo",
"offset_demo",
"static_demo",
"audio_demo",
"chatbot_demo",
"BaseEffect",
"StaticEffect",
"OffsetEffect",
"NoiseEffect",
"StarEffect",
"PlasmaEffect",
"GameOfLifeEffect",
"RainEffect",
"MatrixEffect",
"ChatbotEffect",
"StringStreamer",
"GradientNoise",
"Loading",
"Key",
"DrawLinesEffect",
"Line",
"FLAKE",
"SnowEffect",
"Buffer",
"BaseRenderer",
"EffectRenderer",
"CenterRenderer",
"PanRenderer",
"FocusRenderer",
"BackgroundColorRenderer",
"images",
"__version__",
"__valid_demos__",
"LIFE_COLORS",
"LIFE_SCALES",
"PLASMA_COLORS",
"PLASMA_VALUES",
"GRADIENTS",
"VALID_DIRECTIONS",
"OLD_GREY_SCALES",
"GREY_SCALES",
"WIND_DIRECTIONS",
"NOISE",
"FLAKES",
"FLAKE_COLORS",
"FLAKE_JUMPS",
"NEXT_FLAKE_MOVE",
"FLAKE_WEIGHT_CHARS",
"FLAKE_FLIPS",
"TWINKLE_COLORS",
"VALID_INTERFACES",
"get_image",
"text_to_image",
"TwinkleEffect",
"TWINKLE_SPEC"
]
if sys.platform == "win32":
__valid_demos__.append("audio_demo")


if sys.platform == "win32":
__all__ = [
"Screen",
"plasma_demo",
"line_demo",
"holiday",
"snow_demo",
"stars_demo",
"twinkle_demo",
"noise_demo",
"matrix_demo",
"gol_demo",
"rain_demo",
"offset_demo",
"static_demo",
"audio_demo",
"chatbot_demo",
"AudioEffect",
"BaseEffect",
"StaticEffect",
"OffsetEffect",
"NoiseEffect",
"StarEffect",
"PlasmaEffect",
"GameOfLifeEffect",
"RainEffect",
"MatrixEffect",
"ChatbotEffect",
"StringStreamer",
"GradientNoise",
"Loading",
"Key",
"DrawLinesEffect",
"Line",
"FLAKE",
"SnowEffect",
"Buffer",
"BaseRenderer",
"EffectRenderer",
"CenterRenderer",
"PanRenderer",
"FocusRenderer",
"BackgroundColorRenderer",
"images",
"__version__",
"__valid_demos__",
"LIFE_COLORS",
"LIFE_SCALES",
"PLASMA_COLORS",
"PLASMA_VALUES",
"GRADIENTS",
"VALID_DIRECTIONS",
"OLD_GREY_SCALES",
"GREY_SCALES",
"WIND_DIRECTIONS",
"NOISE",
"FLAKES",
"FLAKE_COLORS",
"FLAKE_JUMPS",
"NEXT_FLAKE_MOVE",
"FLAKE_WEIGHT_CHARS",
"FLAKE_FLIPS",
"TWINKLE_COLORS",
"VALID_INTERFACES",
"get_image",
"text_to_image",
"TwinkleEffect",
"TWINKLE_SPEC",
]
else:
__all__ = [
"Screen",
"plasma_demo",
"line_demo",
"holiday",
"snow_demo",
"stars_demo",
"twinkle_demo",
"noise_demo",
"matrix_demo",
"gol_demo",
"rain_demo",
"offset_demo",
"static_demo",
"chatbot_demo",
"BaseEffect",
"StaticEffect",
"OffsetEffect",
"NoiseEffect",
"StarEffect",
"PlasmaEffect",
"GameOfLifeEffect",
"RainEffect",
"MatrixEffect",
"ChatbotEffect",
"StringStreamer",
"GradientNoise",
"Loading",
"Key",
"DrawLinesEffect",
"Line",
"FLAKE",
"SnowEffect",
"Buffer",
"BaseRenderer",
"EffectRenderer",
"CenterRenderer",
"PanRenderer",
"FocusRenderer",
"BackgroundColorRenderer",
"images",
"__version__",
"__valid_demos__",
"LIFE_COLORS",
"LIFE_SCALES",
"PLASMA_COLORS",
"PLASMA_VALUES",
"GRADIENTS",
"VALID_DIRECTIONS",
"OLD_GREY_SCALES",
"GREY_SCALES",
"WIND_DIRECTIONS",
"NOISE",
"FLAKES",
"FLAKE_COLORS",
"FLAKE_JUMPS",
"NEXT_FLAKE_MOVE",
"FLAKE_WEIGHT_CHARS",
"FLAKE_FLIPS",
"TWINKLE_COLORS",
"VALID_INTERFACES",
"get_image",
"text_to_image",
"TwinkleEffect",
"TWINKLE_SPEC",
]

9 changes: 6 additions & 3 deletions bruhanimate/bruheffect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from .base_effect import BaseEffect
from .static_effect import StaticEffect
from .star_effect import StarEffect
Expand All @@ -10,7 +11,6 @@
from .twinkle_effect import TwinkleEffect, TWINKLE_SPEC
from .offset_effect import OffsetEffect
from .rain_effect import RainEffect
from .audio_effect import AudioEffect
from .noise_effect import NoiseEffect


Expand All @@ -27,12 +27,15 @@
"TwinkleEffect",
"OffsetEffect",
"RainEffect",
"AudioEffect",
"NoiseEffect",
"GradientNoise",
"Loading",
"StringStreamer",
"Key",
"Line",
"TWINKLE_SPEC"
]
]

if sys.platform == 'win32':
from .audio_effect import AudioEffect
__all__.append("AudioEffect")
Loading

0 comments on commit 661bdfd

Please sign in to comment.