beam_row_symbols:tuple[str,...]=ArgField(cmd_name="--beam-row-symbols",
-type_parser=arg_validators.Symbol.type_parser,
+type_parser=argvalidators.Symbol.type_parser,nargs="+",default=("▂","▁","_"),
-metavar=arg_validators.Symbol.METAVAR,
+metavar=argvalidators.Symbol.METAVAR,help="Symbols to use for the beam effect when moving along a row. Strings will be used in sequence to create an animation.",)# type: ignore[assignment]
@@ -2057,10 +2674,10 @@
beam_column_symbols:tuple[str,...]=ArgField(cmd_name="--beam-column-symbols",
-type_parser=arg_validators.Symbol.type_parser,
+type_parser=argvalidators.Symbol.type_parser,nargs="+",default=("▌","▍","▎","▏"),
-metavar=arg_validators.Symbol.METAVAR,
+metavar=argvalidators.Symbol.METAVAR,help="Symbols to use for the beam effect when moving along a column. Strings will be used in sequence to create an animation.",)# type: ignore[assignment]
@@ -2068,9 +2685,9 @@
beam_delay:int=ArgField(cmd_name="--beam-delay",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,default=10,
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Number of frames to wait before adding the next group of beams. Beams are added in groups of size random(1, 5).",)# type: ignore[assignment]
@@ -2078,9 +2695,9 @@
beam_row_speed_range:tuple[int,int]=ArgField(cmd_name="--beam-row-speed-range",
-type_parser=arg_validators.IntRange.type_parser,
+type_parser=argvalidators.IntRange.type_parser,default=(10,40),
-metavar=arg_validators.IntRange.METAVAR,
+metavar=argvalidators.IntRange.METAVAR,help="Speed range of the beam when moving along a row.",)# type: ignore[assignment]
@@ -2088,9 +2705,9 @@
beam_column_speed_range:tuple[int,int]=ArgField(cmd_name="--beam-column-speed-range",
-type_parser=arg_validators.IntRange.type_parser,
+type_parser=argvalidators.IntRange.type_parser,default=(6,10),
-metavar=arg_validators.IntRange.METAVAR,
+metavar=argvalidators.IntRange.METAVAR,help="Speed range of the beam when moving along a column.",)# type: ignore[assignment]
@@ -2098,7 +2715,7 @@
beam_gradient_steps:tuple[int,...]=ArgField(cmd_name="--beam-gradient-steps",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(2,8),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.",)# type: ignore[assignment]
@@ -2120,9 +2737,9 @@
beam_gradient_frames:int=ArgField(cmd_name="--beam-gradient-frames",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,default=2,
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Number of frames to display each gradient step.",)# type: ignore[assignment]
@@ -2130,10 +2747,10 @@
final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name="--final-gradient-stops",
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("8A008A","00D1FF","ffffff"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the wipe gradient.",)# type: ignore[assignment]
@@ -2141,10 +2758,10 @@
final_gradient_steps:tuple[int,]=ArgField(cmd_name="--final-gradient-steps",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.",)# type: ignore[assignment]
@@ -2152,9 +2769,9 @@
final_gradient_frames:int=ArgField(cmd_name="--final-gradient-frames",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,default=5,
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Number of frames to display each gradient step.",)# type: ignore[assignment]
@@ -2162,9 +2779,9 @@
final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
+type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,
-metavar=arg_validators.GradientDirection.METAVAR,
+metavar=argvalidators.GradientDirection.METAVAR,help="Direction of the final gradient.",)# type: ignore[assignment]
@@ -2172,9 +2789,9 @@
final_wipe_speed:int=ArgField(cmd_name="--final-wipe-speed",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,default=1,
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Speed of the final wipe as measured in diagonal groups activated per frame.",)# type: ignore[assignment]
@@ -2201,7 +2818,7 @@
- beam_column_speed_range:tuple[int,int]=ArgField(cmd_name='--beam-column-speed-range',type_parser=arg_validators.IntRange.type_parser,default=(6,10),metavar=arg_validators.IntRange.METAVAR,help='Speed range of the beam when moving along a column.')
+ beam_column_speed_range:tuple[int,int]=ArgField(cmd_name='--beam-column-speed-range',type_parser=argvalidators.IntRange.type_parser,default=(6,10),metavar=argvalidators.IntRange.METAVAR,help='Speed range of the beam when moving along a column.')class-attribute
@@ -2223,7 +2840,7 @@
- beam_column_symbols:tuple[str,...]=ArgField(cmd_name='--beam-column-symbols',type_parser=arg_validators.Symbol.type_parser,nargs='+',default=('▌','▍','▎','▏'),metavar=arg_validators.Symbol.METAVAR,help='Symbols to use for the beam effect when moving along a column. Strings will be used in sequence to create an animation.')
+ beam_column_symbols:tuple[str,...]=ArgField(cmd_name='--beam-column-symbols',type_parser=argvalidators.Symbol.type_parser,nargs='+',default=('▌','▍','▎','▏'),metavar=argvalidators.Symbol.METAVAR,help='Symbols to use for the beam effect when moving along a column. Strings will be used in sequence to create an animation.')class-attribute
@@ -2245,7 +2862,7 @@
- beam_delay:int=ArgField(cmd_name='--beam-delay',type_parser=arg_validators.PositiveInt.type_parser,default=10,metavar=arg_validators.PositiveInt.METAVAR,help='Number of frames to wait before adding the next group of beams. Beams are added in groups of size random(1, 5).')
+ beam_delay:int=ArgField(cmd_name='--beam-delay',type_parser=argvalidators.PositiveInt.type_parser,default=10,metavar=argvalidators.PositiveInt.METAVAR,help='Number of frames to wait before adding the next group of beams. Beams are added in groups of size random(1, 5).')class-attribute
@@ -2267,7 +2884,7 @@
- beam_gradient_frames:int=ArgField(cmd_name='--beam-gradient-frames',type_parser=arg_validators.PositiveInt.type_parser,default=2,metavar=arg_validators.PositiveInt.METAVAR,help='Number of frames to display each gradient step.')
+ beam_gradient_frames:int=ArgField(cmd_name='--beam-gradient-frames',type_parser=argvalidators.PositiveInt.type_parser,default=2,metavar=argvalidators.PositiveInt.METAVAR,help='Number of frames to display each gradient step.')class-attribute
@@ -2289,7 +2906,7 @@
- beam_gradient_steps:tuple[int,...]=ArgField(cmd_name='--beam-gradient-steps',type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(2,8),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.')
+ beam_gradient_steps:tuple[int,...]=ArgField(cmd_name='--beam-gradient-steps',type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(2,8),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.')class-attribute
@@ -2311,7 +2928,7 @@
- beam_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name='--beam-gradient-stops',type_parser=arg_validators.Color.type_parser,nargs='+',default=('ffffff','00D1FF','8A008A'),metavar='(XTerm [0-255] OR RGB Hex [000000-ffffff])',help='Space separated, unquoted, list of colors for the beam, a gradient will be created between the colors.')
+ beam_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name='--beam-gradient-stops',type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('ffffff','00D1FF','8A008A'),metavar='(XTerm [0-255] OR RGB Hex [000000-ffffff])',help='Space separated, unquoted, list of colors for the beam, a gradient will be created between the colors.')class-attribute
@@ -2333,7 +2950,7 @@
- beam_row_speed_range:tuple[int,int]=ArgField(cmd_name='--beam-row-speed-range',type_parser=arg_validators.IntRange.type_parser,default=(10,40),metavar=arg_validators.IntRange.METAVAR,help='Speed range of the beam when moving along a row.')
+ beam_row_speed_range:tuple[int,int]=ArgField(cmd_name='--beam-row-speed-range',type_parser=argvalidators.IntRange.type_parser,default=(10,40),metavar=argvalidators.IntRange.METAVAR,help='Speed range of the beam when moving along a row.')class-attribute
@@ -2355,7 +2972,7 @@
- beam_row_symbols:tuple[str,...]=ArgField(cmd_name='--beam-row-symbols',type_parser=arg_validators.Symbol.type_parser,nargs='+',default=('▂','▁','_'),metavar=arg_validators.Symbol.METAVAR,help='Symbols to use for the beam effect when moving along a row. Strings will be used in sequence to create an animation.')
+ beam_row_symbols:tuple[str,...]=ArgField(cmd_name='--beam-row-symbols',type_parser=argvalidators.Symbol.type_parser,nargs='+',default=('▂','▁','_'),metavar=argvalidators.Symbol.METAVAR,help='Symbols to use for the beam effect when moving along a row. Strings will be used in sequence to create an animation.')class-attribute
@@ -2377,7 +2994,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -2399,7 +3016,7 @@
- final_gradient_frames:int=ArgField(cmd_name='--final-gradient-frames',type_parser=arg_validators.PositiveInt.type_parser,default=5,metavar=arg_validators.PositiveInt.METAVAR,help='Number of frames to display each gradient step.')
+ final_gradient_frames:int=ArgField(cmd_name='--final-gradient-frames',type_parser=argvalidators.PositiveInt.type_parser,default=5,metavar=argvalidators.PositiveInt.METAVAR,help='Number of frames to display each gradient step.')class-attribute
@@ -2421,7 +3038,7 @@
- final_gradient_steps:tuple[int]=ArgField(cmd_name='--final-gradient-steps',type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.')
+ final_gradient_steps:tuple[int]=ArgField(cmd_name='--final-gradient-steps',type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, numbers for the of gradient steps to use. More steps will create a smoother and longer gradient animation. Steps are paired with the colors in final-gradient-stops.')class-attribute
@@ -2443,7 +3060,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name='--final-gradient-stops',type_parser=arg_validators.Color.type_parser,nargs='+',default=('8A008A','00D1FF','ffffff'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the wipe gradient.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name='--final-gradient-stops',type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('8A008A','00D1FF','ffffff'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the wipe gradient.')class-attribute
@@ -2465,7 +3082,7 @@
- final_wipe_speed:int=ArgField(cmd_name='--final-wipe-speed',type_parser=arg_validators.PositiveInt.type_parser,default=1,metavar=arg_validators.PositiveInt.METAVAR,help='Speed of the final wipe as measured in diagonal groups activated per frame.')
+ final_wipe_speed:int=ArgField(cmd_name='--final-wipe-speed',type_parser=argvalidators.PositiveInt.type_parser,default=1,metavar=argvalidators.PositiveInt.METAVAR,help='Speed of the final wipe as measured in diagonal groups activated per frame.')class-attribute
diff --git a/effects/binarypath/index.html b/effects/binarypath/index.html
index 8dbd6902..f810f16e 100755
--- a/effects/binarypath/index.html
+++ b/effects/binarypath/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("00d500","007500"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",)# type: ignore[assignment]
@@ -1769,10 +2386,10 @@
final_gradient_steps:tuple[int,...]=ArgField(cmd_name=["--final-gradient-steps"],
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",)# type: ignore[assignment]
@@ -1780,9 +2397,9 @@
final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
+type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.CENTER,
-metavar=arg_validators.GradientDirection.METAVAR,
+metavar=argvalidators.GradientDirection.METAVAR,help="Direction of the final gradient.",)# type: ignore[assignment]
@@ -1790,10 +2407,10 @@
binary_colors:tuple[graphics.Color,...]=ArgField(cmd_name=["--binary-colors"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("044E29","157e38","45bf55","95ed87"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the binary characters. Character color is randomly assigned from this list.",)# type: ignore[assignment]
@@ -1801,9 +2418,9 @@
movement_speed:float=ArgField(cmd_name="--movement-speed",
-type_parser=arg_validators.PositiveFloat.type_parser,
+type_parser=argvalidators.PositiveFloat.type_parser,default=1.0,
-metavar=arg_validators.PositiveFloat.METAVAR,
+metavar=argvalidators.PositiveFloat.METAVAR,help="Speed of the binary groups as they travel around the terminal.",)# type: ignore[assignment]
@@ -1811,9 +2428,9 @@
active_binary_groups:float=ArgField(cmd_name="--active-binary-groups",
-type_parser=arg_validators.Ratio.type_parser,
+type_parser=argvalidators.Ratio.type_parser,default=0.05,
-metavar=arg_validators.Ratio.METAVAR,
+metavar=argvalidators.Ratio.METAVAR,help="Maximum number of binary groups that are active at any given time as a percentage of the total number of binary groups. Lower this to improve performance.",)# type: ignore[assignment]
@@ -1840,7 +2457,7 @@
- active_binary_groups:float=ArgField(cmd_name='--active-binary-groups',type_parser=arg_validators.Ratio.type_parser,default=0.05,metavar=arg_validators.Ratio.METAVAR,help='Maximum number of binary groups that are active at any given time as a percentage of the total number of binary groups. Lower this to improve performance.')
+ active_binary_groups:float=ArgField(cmd_name='--active-binary-groups',type_parser=argvalidators.Ratio.type_parser,default=0.05,metavar=argvalidators.Ratio.METAVAR,help='Maximum number of binary groups that are active at any given time as a percentage of the total number of binary groups. Lower this to improve performance.')class-attribute
@@ -1862,7 +2479,7 @@
- binary_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--binary-colors'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('044E29','157e38','45bf55','95ed87'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the binary characters. Character color is randomly assigned from this list.')
+ binary_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--binary-colors'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('044E29','157e38','45bf55','95ed87'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the binary characters. Character color is randomly assigned from this list.')class-attribute
@@ -1884,7 +2501,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.CENTER,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.CENTER,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -1906,7 +2523,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -1928,7 +2545,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('00d500','007500'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('00d500','007500'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -1950,7 +2567,7 @@
- movement_speed:float=ArgField(cmd_name='--movement-speed',type_parser=arg_validators.PositiveFloat.type_parser,default=1.0,metavar=arg_validators.PositiveFloat.METAVAR,help='Speed of the binary groups as they travel around the terminal.')
+ movement_speed:float=ArgField(cmd_name='--movement-speed',type_parser=argvalidators.PositiveFloat.type_parser,default=1.0,metavar=argvalidators.PositiveFloat.METAVAR,help='Speed of the binary groups as they travel around the terminal.')class-attribute
diff --git a/effects/blackhole/index.html b/effects/blackhole/index.html
index 15c76cb6..d2e7e303 100755
--- a/effects/blackhole/index.html
+++ b/effects/blackhole/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
classBlackhole(BaseEffect[BlackholeConfig]):
-"""Creates a blackhole in a starfield, consumes the stars, explodes the input data back into position.
-
- Attributes:
- effect_config (BlackholeConfig): Configuration for the Blackhole effect.
- terminal_config (TerminalConfig): Configuration for the terminal.
- """
-
-_config_cls=BlackholeConfig
-_iterator_cls=BlackholeIterator
-
-def__init__(self,input_data:str)->None:
-"""Initializes the Blackhole effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the Blackhole effect.
- """
-super().__init__(input_data)
+391
+392
classBlackhole(BaseEffect[BlackholeConfig]):
+"""Creates a blackhole in a starfield, consumes the stars, explodes the input data back into position.
+
+ Attributes:
+ effect_config (BlackholeConfig): Configuration for the Blackhole effect.
+ terminal_config (TerminalConfig): Configuration for the terminal.
+ """
+
+_config_cls=BlackholeConfig
+_iterator_cls=BlackholeIterator
+
+def__init__(self,input_data:str)->None:
+"""Initializes the Blackhole effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the Blackhole effect.
+ """
+super().__init__(input_data)
@@ -1504,19 +2121,19 @@
Source code in terminaltexteffects/effects/effect_blackhole.py
-
def__init__(self,input_data:str)->None:
-"""Initializes the Blackhole effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the Blackhole effect.
- """
-super().__init__(input_data)
+391
+392
def__init__(self,input_data:str)->None:
+"""Initializes the Blackhole effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the Blackhole effect.
+ """
+super().__init__(input_data)
@argclass(
-name="blackhole",
-help="Characters are consumed by a black hole and explode outwards.",
-description="blackhole | Characters are consumed by a black hole and explode outwards.",
-epilog="""Example: terminaltexteffects blackhole --star-colors ffcc0d ff7326 ff194d bf2669 702a8c 049dbf --final-gradient-stops 8A008A 00D1FF FFFFFF --final-gradient-steps 12 --final-gradient-direction vertical""",
-)
-@dataclass
-classBlackholeConfig(ArgsDataClass):
-"""Configuration for the Blackhole effect.
-
- Attributes:
- blackhole_color (graphics.Color): Color for the stars that comprise the blackhole border.
- star_colors (tuple[graphics.Color, ...]): Tuple of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.
- final_gradient_stops (tuple[graphics.Color, ...]): Tuple of colors for the character gradient. If only one color is provided, the characters will be displayed in that color.
- final_gradient_steps (tuple[int, ...]): Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation. Valid values are n > 0.
- final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
-
-blackhole_color:graphics.Color=ArgField(
-cmd_name=["--blackhole-color"],
-type_parser=arg_validators.Color.type_parser,
-default="ffffff",
-metavar=arg_validators.Color.METAVAR,
-help="Color for the stars that comprise the blackhole border.",
-)# type: ignore[assignment]
-
-"graphics.Color : Color for the stars that comprise the blackhole border."
-
-star_colors:tuple[graphics.Color,...]=ArgField(
-cmd_name=["--star-colors"],
-type_parser=arg_validators.Color.type_parser,
-nargs="+",
-default=("ffcc0d","ff7326","ff194d","bf2669","702a8c","049dbf"),
-metavar=arg_validators.Color.METAVAR,
-help="List of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.",
-)# type: ignore[assignment]
-
-"tuple[graphics.Color, ...] : Tuple of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color."
-
-final_gradient_stops:tuple[graphics.Color,...]=ArgField(
-cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
-nargs="+",
-default=("8A008A","00D1FF","ffffff"),
-metavar=arg_validators.Color.METAVAR,
-help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
-)# type: ignore[assignment]
-
-"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."
-
-final_gradient_steps:tuple[int,...]=ArgField(
-cmd_name=["--final-gradient-steps"],
-type_parser=arg_validators.PositiveInt.type_parser,
-nargs="+",
-default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
-help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
-)# type: ignore[assignment]
-
-"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."
-
-final_gradient_direction:graphics.Gradient.Direction=ArgField(
-cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
-default=graphics.Gradient.Direction.DIAGONAL,
-metavar=arg_validators.GradientDirection.METAVAR,
-help="Direction of the final gradient.",
-)# type: ignore[assignment]
-
-"graphics.Gradient.Direction : Direction of the final gradient."
-
-@classmethod
-defget_effect_class(cls):
-returnBlackhole
+
@argclass(
+name="blackhole",
+help="Characters are consumed by a black hole and explode outwards.",
+description="blackhole | Characters are consumed by a black hole and explode outwards.",
+epilog="""Example: terminaltexteffects blackhole --star-colors ffcc0d ff7326 ff194d bf2669 702a8c 049dbf --final-gradient-stops 8A008A 00D1FF FFFFFF --final-gradient-steps 12 --final-gradient-direction vertical""",
+)
+@dataclass
+classBlackholeConfig(ArgsDataClass):
+"""Configuration for the Blackhole effect.
+
+ Attributes:
+ blackhole_color (graphics.Color): Color for the stars that comprise the blackhole border.
+ star_colors (tuple[graphics.Color, ...]): Tuple of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.
+ final_gradient_stops (tuple[graphics.Color, ...]): Tuple of colors for the character gradient. If only one color is provided, the characters will be displayed in that color.
+ final_gradient_steps (tuple[int, ...]): Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation. Valid values are n > 0.
+ final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
+
+blackhole_color:graphics.Color=ArgField(
+cmd_name=["--blackhole-color"],
+type_parser=argvalidators.ColorArg.type_parser,
+default="ffffff",
+metavar=argvalidators.ColorArg.METAVAR,
+help="Color for the stars that comprise the blackhole border.",
+)# type: ignore[assignment]
+
+"graphics.Color : Color for the stars that comprise the blackhole border."
+
+star_colors:tuple[graphics.Color,...]=ArgField(
+cmd_name=["--star-colors"],
+type_parser=argvalidators.ColorArg.type_parser,
+nargs="+",
+default=("ffcc0d","ff7326","ff194d","bf2669","702a8c","049dbf"),
+metavar=argvalidators.ColorArg.METAVAR,
+help="List of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.",
+)# type: ignore[assignment]
+
+"tuple[graphics.Color, ...] : Tuple of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color."
+
+final_gradient_stops:tuple[graphics.Color,...]=ArgField(
+cmd_name=["--final-gradient-stops"],
+type_parser=argvalidators.ColorArg.type_parser,
+nargs="+",
+default=("8A008A","00D1FF","ffffff"),
+metavar=argvalidators.ColorArg.METAVAR,
+help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
+)# type: ignore[assignment]
+
+"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."
+
+final_gradient_steps:tuple[int,...]=ArgField(
+cmd_name=["--final-gradient-steps"],
+type_parser=argvalidators.PositiveInt.type_parser,
+nargs="+",
+default=(12,),
+metavar=argvalidators.PositiveInt.METAVAR,
+help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
+)# type: ignore[assignment]
+
+"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."
+
+final_gradient_direction:graphics.Gradient.Direction=ArgField(
+cmd_name="--final-gradient-direction",
+type_parser=argvalidators.GradientDirection.type_parser,
+default=graphics.Gradient.Direction.DIAGONAL,
+metavar=argvalidators.GradientDirection.METAVAR,
+help="Direction of the final gradient.",
+)# type: ignore[assignment]
+
+"graphics.Gradient.Direction : Direction of the final gradient."
+
+@classmethod
+defget_effect_class(cls):
+returnBlackhole
@@ -1789,7 +2406,7 @@
- blackhole_color:graphics.Color=ArgField(cmd_name=['--blackhole-color'],type_parser=arg_validators.Color.type_parser,default='ffffff',metavar=arg_validators.Color.METAVAR,help='Color for the stars that comprise the blackhole border.')
+ blackhole_color:graphics.Color=ArgField(cmd_name=['--blackhole-color'],type_parser=argvalidators.ColorArg.type_parser,default='ffffff',metavar=argvalidators.ColorArg.METAVAR,help='Color for the stars that comprise the blackhole border.')class-attribute
@@ -1811,7 +2428,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -1833,7 +2450,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -1855,7 +2472,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('8A008A','00D1FF','ffffff'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('8A008A','00D1FF','ffffff'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -1877,7 +2494,7 @@
- star_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--star-colors'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('ffcc0d','ff7326','ff194d','bf2669','702a8c','049dbf'),metavar=arg_validators.Color.METAVAR,help='List of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.')
+ star_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--star-colors'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('ffcc0d','ff7326','ff194d','bf2669','702a8c','049dbf'),metavar=argvalidators.ColorArg.METAVAR,help='List of colors from which character colors will be chosen and applied after the explosion, but before the cooldown to final color.')class-attribute
diff --git a/effects/bouncyballs/index.html b/effects/bouncyballs/index.html
index 65a8a9e8..04a58766 100755
--- a/effects/bouncyballs/index.html
+++ b/effects/bouncyballs/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
name="bouncyballs",help="Characters are bouncy balls falling from the top of the output area.",description="bouncyballs | Characters are bouncy balls falling from the top of the output area.",
-epilog=f"""{arg_validators.EASING_EPILOG}
+epilog=f"""{argvalidators.EASING_EPILOG}Example: terminaltexteffects bouncyballs --ball-colors d1f4a5 96e2a4 5acda9 --ball-symbols o "*" O 0 . --final-gradient-stops f8ffae 43c6ac --final-gradient-steps 12 --final-gradient-direction diagonal --ball-delay 7 --movement-speed 0.25 --easing OUT_BOUNCE""",)@dataclass
@@ -1829,8 +2446,8 @@
ball_colors:tuple[graphics.Color,...]=ArgField(cmd_name=["--ball-colors"],
-type_parser=arg_validators.Color.type_parser,
-metavar=arg_validators.Color.METAVAR,
+type_parser=argvalidators.ColorArg.type_parser,
+metavar=argvalidators.ColorArg.METAVAR,nargs="+",default=("d1f4a5","96e2a4","5acda9"),help="Space separated list of colors from which ball colors will be randomly selected. If no colors are provided, the colors are random.",
@@ -1839,63 +2456,63 @@
ball_symbols:tuple[str,...]=ArgField(cmd_name="--ball-symbols",
-type_parser=arg_validators.Symbol.type_parser,
+type_parser=argvalidators.Symbol.type_parser,nargs="+",default=("*","o","O","0","."),
-metavar=arg_validators.Symbol.METAVAR,
+metavar=argvalidators.Symbol.METAVAR,help="Space separated list of symbols to use for the balls.",)# type: ignore[assignment]"tuple[str, ...] : Tuple of symbols to use for the balls."final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("f8ffae","43c6ac"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",)# type: ignore[assignment]"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."final_gradient_steps:tuple[int,...]=ArgField(cmd_name=["--final-gradient-steps"],
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",)# type: ignore[assignment]"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
+type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,
-metavar=arg_validators.GradientDirection.METAVAR,
+metavar=argvalidators.GradientDirection.METAVAR,help="Direction of the final gradient.",)# type: ignore[assignment]"graphics.Gradient.Direction : Direction of the final gradient."ball_delay:int=ArgField(cmd_name="--ball-delay",
-type_parser=arg_validators.NonNegativeInt.type_parser,
+type_parser=argvalidators.NonNegativeInt.type_parser,default=7,
-metavar=arg_validators.NonNegativeInt.METAVAR,
+metavar=argvalidators.NonNegativeInt.METAVAR,help="Number of frames between ball drops, increase to reduce ball drop rate.",)# type: ignore[assignment]"int : Number of frames between ball drops, increase to reduce ball drop rate."movement_speed:float=ArgField(cmd_name="--movement-speed",
-type_parser=arg_validators.PositiveFloat.type_parser,
+type_parser=argvalidators.PositiveFloat.type_parser,default=0.25,
-metavar=arg_validators.PositiveFloat.METAVAR,
+metavar=argvalidators.PositiveFloat.METAVAR,help="Movement speed of the characters. ",)# type: ignore[assignment]"float : Movement speed of the characters. "movement_easing:easing.EasingFunction=ArgField(cmd_name="--movement-easing",
-type_parser=arg_validators.Ease.type_parser,
+type_parser=argvalidators.Ease.type_parser,default=easing.out_bounce,help="Easing function to use for character movement.",)# type: ignore[assignment]
@@ -1922,7 +2539,7 @@
- ball_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--ball-colors'],type_parser=arg_validators.Color.type_parser,metavar=arg_validators.Color.METAVAR,nargs='+',default=('d1f4a5','96e2a4','5acda9'),help='Space separated list of colors from which ball colors will be randomly selected. If no colors are provided, the colors are random.')
+ ball_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--ball-colors'],type_parser=argvalidators.ColorArg.type_parser,metavar=argvalidators.ColorArg.METAVAR,nargs='+',default=('d1f4a5','96e2a4','5acda9'),help='Space separated list of colors from which ball colors will be randomly selected. If no colors are provided, the colors are random.')class-attribute
@@ -1944,7 +2561,7 @@
- ball_delay:int=ArgField(cmd_name='--ball-delay',type_parser=arg_validators.NonNegativeInt.type_parser,default=7,metavar=arg_validators.NonNegativeInt.METAVAR,help='Number of frames between ball drops, increase to reduce ball drop rate.')
+ ball_delay:int=ArgField(cmd_name='--ball-delay',type_parser=argvalidators.NonNegativeInt.type_parser,default=7,metavar=argvalidators.NonNegativeInt.METAVAR,help='Number of frames between ball drops, increase to reduce ball drop rate.')class-attribute
@@ -1966,7 +2583,7 @@
- ball_symbols:tuple[str,...]=ArgField(cmd_name='--ball-symbols',type_parser=arg_validators.Symbol.type_parser,nargs='+',default=('*','o','O','0','.'),metavar=arg_validators.Symbol.METAVAR,help='Space separated list of symbols to use for the balls.')
+ ball_symbols:tuple[str,...]=ArgField(cmd_name='--ball-symbols',type_parser=argvalidators.Symbol.type_parser,nargs='+',default=('*','o','O','0','.'),metavar=argvalidators.Symbol.METAVAR,help='Space separated list of symbols to use for the balls.')class-attribute
@@ -1988,7 +2605,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -2010,7 +2627,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -2032,7 +2649,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('f8ffae','43c6ac'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('f8ffae','43c6ac'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -2054,7 +2671,7 @@
- movement_easing:easing.EasingFunction=ArgField(cmd_name='--movement-easing',type_parser=arg_validators.Ease.type_parser,default=easing.out_bounce,help='Easing function to use for character movement.')
+ movement_easing:easing.EasingFunction=ArgField(cmd_name='--movement-easing',type_parser=argvalidators.Ease.type_parser,default=easing.out_bounce,help='Easing function to use for character movement.')class-attribute
@@ -2076,7 +2693,7 @@
- movement_speed:float=ArgField(cmd_name='--movement-speed',type_parser=arg_validators.PositiveFloat.type_parser,default=0.25,metavar=arg_validators.PositiveFloat.METAVAR,help='Movement speed of the characters. ')
+ movement_speed:float=ArgField(cmd_name='--movement-speed',type_parser=argvalidators.PositiveFloat.type_parser,default=0.25,metavar=argvalidators.PositiveFloat.METAVAR,help='Movement speed of the characters. ')class-attribute
diff --git a/effects/bubbles/index.html b/effects/bubbles/index.html
index e7cf5465..339672da 100755
--- a/effects/bubbles/index.html
+++ b/effects/bubbles/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
name="bubbles",help="Characters are formed into bubbles that float down and pop.",description="bubbles | Characters are formed into bubbles that float down and pop.",
-epilog=f"""{arg_validators.EASING_EPILOG}
+epilog=f"""{argvalidators.EASING_EPILOG}Example: terminaltexteffects bubbles --bubble-colors d33aff 7395c4 43c2a7 02ff7f --pop-color ffffff --final-gradient-stops d33aff 02ff7f --final-gradient-steps 12 --final-gradient-direction diagonal --bubble-speed 0.1 --bubble-delay 50 --pop-condition row --easing IN_OUT_SINE""",)
@@ -1920,66 +2537,66 @@
bubble_colors:tuple[graphics.Color,...]=ArgField(cmd_name="--bubble-colors",
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("d33aff","7395c4","43c2a7","02ff7f"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the bubbles. Ignored if --no-rainbow is left as default False.",)# type: ignore[assignment]"tuple[graphics.Color, ...] : Tuple of colors for the bubbles. Ignored if --no-rainbow is left as default False."pop_color:graphics.Color=ArgField(cmd_name="--pop-color",
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,default="ffffff",
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Color for the spray emitted when a bubble pops.",)# type: ignore[assignment]"graphics.Color : Color for the spray emitted when a bubble pops."final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("d33aff","02ff7f"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",)# type: ignore[assignment]"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."final_gradient_steps:tuple[int,...]=ArgField(cmd_name="--final-gradient-steps",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",)# type: ignore[assignment]"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
+type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,
-metavar=arg_validators.GradientDirection.METAVAR,
+metavar=argvalidators.GradientDirection.METAVAR,help="Direction of the final gradient.",)# type: ignore[assignment]"graphics.Gradient.Direction : Direction of the final gradient."bubble_speed:float=ArgField(cmd_name="--bubble-speed",
-type_parser=arg_validators.PositiveFloat.type_parser,
+type_parser=argvalidators.PositiveFloat.type_parser,default=0.1,
-metavar=arg_validators.PositiveFloat.METAVAR,
+metavar=argvalidators.PositiveFloat.METAVAR,help="Speed of the floating bubbles. ",)# type: ignore[assignment]"float : Speed of the floating bubbles. "bubble_delay:int=ArgField(cmd_name="--bubble-delay",
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,default=50,
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Number of frames between bubbles.",)# type: ignore[assignment]"int : Number of frames between bubbles."
@@ -1995,8 +2612,8 @@
movement_easing:easing.EasingFunction=ArgField(
cmd_name=["--movement-easing"],default=easing.in_out_sine,
-type_parser=arg_validators.Ease.type_parser,
-metavar=arg_validators.Ease.METAVAR,
+type_parser=argvalidators.Ease.type_parser,
+metavar=argvalidators.Ease.METAVAR,help="Easing function to use for character movement after a bubble pops.",)# type: ignore[assignment]"easing.EasingFunction : Easing function to use for character movement after a bubble pops."
@@ -2022,7 +2639,7 @@
- bubble_colors:tuple[graphics.Color,...]=ArgField(cmd_name='--bubble-colors',type_parser=arg_validators.Color.type_parser,nargs='+',default=('d33aff','7395c4','43c2a7','02ff7f'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the bubbles. Ignored if --no-rainbow is left as default False.')
+ bubble_colors:tuple[graphics.Color,...]=ArgField(cmd_name='--bubble-colors',type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('d33aff','7395c4','43c2a7','02ff7f'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the bubbles. Ignored if --no-rainbow is left as default False.')class-attribute
@@ -2044,7 +2661,7 @@
- bubble_delay:int=ArgField(cmd_name='--bubble-delay',type_parser=arg_validators.PositiveInt.type_parser,default=50,metavar=arg_validators.PositiveInt.METAVAR,help='Number of frames between bubbles.')
+ bubble_delay:int=ArgField(cmd_name='--bubble-delay',type_parser=argvalidators.PositiveInt.type_parser,default=50,metavar=argvalidators.PositiveInt.METAVAR,help='Number of frames between bubbles.')class-attribute
@@ -2066,7 +2683,7 @@
- bubble_speed:float=ArgField(cmd_name='--bubble-speed',type_parser=arg_validators.PositiveFloat.type_parser,default=0.1,metavar=arg_validators.PositiveFloat.METAVAR,help='Speed of the floating bubbles. ')
+ bubble_speed:float=ArgField(cmd_name='--bubble-speed',type_parser=argvalidators.PositiveFloat.type_parser,default=0.1,metavar=argvalidators.PositiveFloat.METAVAR,help='Speed of the floating bubbles. ')class-attribute
@@ -2088,7 +2705,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -2110,7 +2727,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -2132,7 +2749,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('d33aff','02ff7f'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('d33aff','02ff7f'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -2154,7 +2771,7 @@
- movement_easing:easing.EasingFunction=ArgField(cmd_name=['--movement-easing'],default=easing.in_out_sine,type_parser=arg_validators.Ease.type_parser,metavar=arg_validators.Ease.METAVAR,help='Easing function to use for character movement after a bubble pops.')
+ movement_easing:easing.EasingFunction=ArgField(cmd_name=['--movement-easing'],default=easing.in_out_sine,type_parser=argvalidators.Ease.type_parser,metavar=argvalidators.Ease.METAVAR,help='Easing function to use for character movement after a bubble pops.')class-attribute
@@ -2176,7 +2793,7 @@
- pop_color:graphics.Color=ArgField(cmd_name='--pop-color',type_parser=arg_validators.Color.type_parser,default='ffffff',metavar=arg_validators.Color.METAVAR,help='Color for the spray emitted when a bubble pops.')
+ pop_color:graphics.Color=ArgField(cmd_name='--pop-color',type_parser=argvalidators.ColorArg.type_parser,default='ffffff',metavar=argvalidators.ColorArg.METAVAR,help='Color for the spray emitted when a bubble pops.')class-attribute
diff --git a/effects/burn/index.html b/effects/burn/index.html
index d665a9e8..0997c063 100755
--- a/effects/burn/index.html
+++ b/effects/burn/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
starting_color:graphics.Color=ArgField(cmd_name="--starting-color",
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,default="837373",
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Color of the characters before they start to burn.",)# type: ignore[assignment]"graphics.Color : Color of the characters before they start to burn."burn_colors:tuple[graphics.Color,...]=ArgField(cmd_name=["--burn-colors"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,default=("ffffff","fff75d","fe650d","8A003C","510100"),nargs="+",
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Colors transitioned through as the characters burn.",)# type: ignore[assignment]"tuple[graphics.Color, ...] : Colors transitioned through as the characters burn."final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
+type_parser=argvalidators.ColorArg.type_parser,nargs="+",default=("00c3ff","ffff1c"),
-metavar=arg_validators.Color.METAVAR,
+metavar=argvalidators.ColorArg.METAVAR,help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",)# type: ignore[assignment]"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."final_gradient_steps:tuple[int,...]=ArgField(cmd_name=["--final-gradient-steps"],
-type_parser=arg_validators.PositiveInt.type_parser,
+type_parser=argvalidators.PositiveInt.type_parser,nargs="+",default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
+metavar=argvalidators.PositiveInt.METAVAR,help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",)# type: ignore[assignment]"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
+type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,
-metavar=arg_validators.GradientDirection.METAVAR,
+metavar=argvalidators.GradientDirection.METAVAR,help="Direction of the final gradient.",)# type: ignore[assignment]"graphics.Gradient.Direction : Direction of the final gradient."
@@ -1775,7 +2392,7 @@
- burn_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--burn-colors'],type_parser=arg_validators.Color.type_parser,default=('ffffff','fff75d','fe650d','8A003C','510100'),nargs='+',metavar=arg_validators.Color.METAVAR,help='Colors transitioned through as the characters burn.')
+ burn_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--burn-colors'],type_parser=argvalidators.ColorArg.type_parser,default=('ffffff','fff75d','fe650d','8A003C','510100'),nargs='+',metavar=argvalidators.ColorArg.METAVAR,help='Colors transitioned through as the characters burn.')class-attribute
@@ -1797,7 +2414,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -1819,7 +2436,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name=['--final-gradient-steps'],type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -1841,7 +2458,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('00c3ff','ffff1c'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('00c3ff','ffff1c'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -1863,7 +2480,7 @@
- starting_color:graphics.Color=ArgField(cmd_name='--starting-color',type_parser=arg_validators.Color.type_parser,default='837373',metavar=arg_validators.Color.METAVAR,help='Color of the characters before they start to burn.')
+ starting_color:graphics.Color=ArgField(cmd_name='--starting-color',type_parser=argvalidators.ColorArg.type_parser,default='837373',metavar=argvalidators.ColorArg.METAVAR,help='Color of the characters before they start to burn.')class-attribute
diff --git a/effects/crumble/index.html b/effects/crumble/index.html
index c8d7ad27..0f372255 100755
--- a/effects/crumble/index.html
+++ b/effects/crumble/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
classCrumble(BaseEffect[CrumbleConfig]):
-"""Characters crumble into dust before being vacuumed up and reformed.
-
- Attributes:
- effect_config (CrumbleConfig): Configuration for the effect.
- terminal_config (TerminalConfig): Configuration for the terminal.
- """
-
-_config_cls=CrumbleConfig
-_iterator_cls=CrumbleIterator
-
-def__init__(self,input_data:str)->None:
-"""Initialize the effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the effect."""
-super().__init__(input_data)
+225
+226
classCrumble(BaseEffect[CrumbleConfig]):
+"""Characters crumble into dust before being vacuumed up and reformed.
+
+ Attributes:
+ effect_config (CrumbleConfig): Configuration for the effect.
+ terminal_config (TerminalConfig): Configuration for the terminal.
+ """
+
+_config_cls=CrumbleConfig
+_iterator_cls=CrumbleIterator
+
+def__init__(self,input_data:str)->None:
+"""Initialize the effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the effect."""
+super().__init__(input_data)
@@ -1466,17 +2083,17 @@
Source code in terminaltexteffects/effects/effect_crumble.py
-
def__init__(self,input_data:str)->None:
-"""Initialize the effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the effect."""
-super().__init__(input_data)
+225
+226
def__init__(self,input_data:str)->None:
+"""Initialize the effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the effect."""
+super().__init__(input_data)
@argclass(
-name="crumble",
-help="Characters lose color and crumble into dust, vacuumed up, and reformed.",
-description="crumble | Characters lose color and crumble into dust, vacuumed up, and reformed.",
-epilog="""Example: terminaltexteffects crumble --final-gradient-stops 5CE1FF FF8C00 --final-gradient-steps 12 --final-gradient-direction diagonal""",
-)
-@dataclass
-classCrumbleConfig(ArgsDataClass):
-"""Configuration for the Crumble effect.
-
- Attributes:
- final_gradient_stops (tuple[graphics.Color, ...]): Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color.
- final_gradient_steps (tuple[int, ...]): Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation. Valid values are n > 0.
- final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
-
-final_gradient_stops:tuple[graphics.Color,...]=ArgField(
-cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
-nargs="+",
-default=("5CE1FF","FF8C00"),
-metavar=arg_validators.Color.METAVAR,
-help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
-)# type: ignore[assignment]
-"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."
-
-final_gradient_steps:tuple[int,...]=ArgField(
-cmd_name="--final-gradient-steps",
-type_parser=arg_validators.PositiveInt.type_parser,
-nargs="+",
-default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
-help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
-)# type: ignore[assignment]
-"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."
-
-final_gradient_direction:graphics.Gradient.Direction=ArgField(
-cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
-default=graphics.Gradient.Direction.DIAGONAL,
-metavar=arg_validators.GradientDirection.METAVAR,
-help="Direction of the final gradient.",
-)# type: ignore[assignment]
-"graphics.Gradient.Direction : Direction of the final gradient."
-
-@classmethod
-defget_effect_class(cls):
-returnCrumble
+72
+73
@argclass(
+name="crumble",
+help="Characters lose color and crumble into dust, vacuumed up, and reformed.",
+description="crumble | Characters lose color and crumble into dust, vacuumed up, and reformed.",
+epilog="""Example: terminaltexteffects crumble --final-gradient-stops 5CE1FF FF8C00 --final-gradient-steps 12 --final-gradient-direction diagonal""",
+)
+@dataclass
+classCrumbleConfig(ArgsDataClass):
+"""Configuration for the Crumble effect.
+
+ Attributes:
+ final_gradient_stops (tuple[graphics.Color, ...]): Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color.
+ final_gradient_steps (tuple[int, ...]): Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation. Valid values are n > 0.
+ final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
+
+final_gradient_stops:tuple[graphics.Color,...]=ArgField(
+cmd_name=["--final-gradient-stops"],
+type_parser=argvalidators.ColorArg.type_parser,
+nargs="+",
+default=("5CE1FF","FF8C00"),
+metavar=argvalidators.ColorArg.METAVAR,
+help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
+)# type: ignore[assignment]
+"tuple[graphics.Color, ...] : Tuple of colors for the final color gradient. If only one color is provided, the characters will be displayed in that color."
+
+final_gradient_steps:tuple[int,...]=ArgField(
+cmd_name="--final-gradient-steps",
+type_parser=argvalidators.PositiveInt.type_parser,
+nargs="+",
+default=(12,),
+metavar=argvalidators.PositiveInt.METAVAR,
+help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
+)# type: ignore[assignment]
+"tuple[int, ...] : Tuple of the number of gradient steps to use. More steps will create a smoother and longer gradient animation."
+
+final_gradient_direction:graphics.Gradient.Direction=ArgField(
+cmd_name="--final-gradient-direction",
+type_parser=argvalidators.GradientDirection.type_parser,
+default=graphics.Gradient.Direction.DIAGONAL,
+metavar=argvalidators.GradientDirection.METAVAR,
+help="Direction of the final gradient.",
+)# type: ignore[assignment]
+"graphics.Gradient.Direction : Direction of the final gradient."
+
+@classmethod
+defget_effect_class(cls):
+returnCrumble
@@ -1675,7 +2292,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.DIAGONAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -1697,7 +2314,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -1719,7 +2336,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('5CE1FF','FF8C00'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('5CE1FF','FF8C00'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
diff --git a/effects/decrypt/index.html b/effects/decrypt/index.html
index c410dff1..91bad13b 100755
--- a/effects/decrypt/index.html
+++ b/effects/decrypt/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
classDecrypt(BaseEffect[DecryptConfig]):
-"""Movie style text decryption effect.
-
- Attributes:
- effect_config (DecryptConfig): Configuration for the effect.
- terminal_config (TerminalConfig): Configuration for the terminal.
-
- """
-
-_config_cls=DecryptConfig
-_iterator_cls=DecryptIterator
-
-def__init__(self,input_data:str)->None:
-"""Initialize the effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the effect."""
-super().__init__(input_data)
-
-def__iter__(self)->DecryptIterator:
-returnDecryptIterator(self)
+235
+236
classDecrypt(BaseEffect[DecryptConfig]):
+"""Movie style text decryption effect.
+
+ Attributes:
+ effect_config (DecryptConfig): Configuration for the effect.
+ terminal_config (TerminalConfig): Configuration for the terminal.
+
+ """
+
+_config_cls=DecryptConfig
+_iterator_cls=DecryptIterator
+
+def__init__(self,input_data:str)->None:
+"""Initialize the effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the effect."""
+super().__init__(input_data)
+
+def__iter__(self)->DecryptIterator:
+returnDecryptIterator(self)
@@ -1510,17 +2127,17 @@
Source code in terminaltexteffects/effects/effect_decrypt.py
-
def__init__(self,input_data:str)->None:
-"""Initialize the effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the effect."""
-super().__init__(input_data)
+232
+233
def__init__(self,input_data:str)->None:
+"""Initialize the effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the effect."""
+super().__init__(input_data)
@argclass(
-name="decrypt",
-help="Display a movie style decryption effect.",
-description="decrypt | Movie style decryption effect.",
-epilog="Example: terminaltexteffects decrypt --typing-speed 2 --ciphertext-colors 008000 00cb00 00ff00 --final-gradient-stops eda000 --final-gradient-steps 12 --final-gradient-direction vertical",
-)
-@dataclass
-classDecryptConfig(ArgsDataClass):
-"""Configuration for the Decrypt effect.
-
- Attributes:
- typing_speed (int): Number of characters typed per keystroke.
- ciphertext_colors (tuple[graphics.Color, ...]): Colors for the ciphertext. Color will be randomly selected for each character.
- final_gradient_stops (tuple[graphics.Color, ...]): Colors for the character gradient. If only one color is provided, the characters will be displayed in that color.
- final_gradient_steps (tuple[int, ...]): Number of gradient steps to use. More steps will create a smoother and longer gradient animation.
- final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
-
-typing_speed:int=ArgField(
-cmd_name="--typing-speed",
-type_parser=arg_validators.PositiveInt.type_parser,
-default=1,
-metavar=arg_validators.PositiveInt.METAVAR,
-help="Number of characters typed per keystroke.",
-)# type: ignore[assignment]
-"int : Number of characters typed per keystroke."
-
-ciphertext_colors:tuple[graphics.Color,...]=ArgField(
-cmd_name=["--ciphertext-colors"],
-type_parser=arg_validators.Color.type_parser,
-nargs="+",
-default=("008000","00cb00","00ff00"),
-metavar=arg_validators.Color.METAVAR,
-help="Space separated, unquoted, list of colors for the ciphertext. Color will be randomly selected for each character.",
-)# type: ignore[assignment]
-"tuple[graphics.Color, ...] : Colors for the ciphertext. Color will be randomly selected for each character."
-
-final_gradient_stops:tuple[graphics.Color,...]=ArgField(
-cmd_name=["--final-gradient-stops"],
-type_parser=arg_validators.Color.type_parser,
-nargs="+",
-default=("eda000",),
-metavar=arg_validators.Color.METAVAR,
-help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
-)# type: ignore[assignment]
-"tuple[graphics.Color, ...] : Colors for the character gradient. If only one color is provided, the characters will be displayed in that color."
-
-final_gradient_steps:tuple[int,...]=ArgField(
-cmd_name="--final-gradient-steps",
-type_parser=arg_validators.PositiveInt.type_parser,
-nargs="+",
-default=(12,),
-metavar=arg_validators.PositiveInt.METAVAR,
-help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
-)# type: ignore[assignment]
-"tuple[int, ...] : Number of gradient steps to use. More steps will create a smoother and longer gradient animation."
-
-final_gradient_direction:graphics.Gradient.Direction=ArgField(
-cmd_name="--final-gradient-direction",
-type_parser=arg_validators.GradientDirection.type_parser,
-default=graphics.Gradient.Direction.VERTICAL,
-metavar=arg_validators.GradientDirection.METAVAR,
-help="Direction of the final gradient.",
-)# type: ignore[assignment]
-"graphics.Gradient.Direction : Direction of the final gradient."
-
-@classmethod
-defget_effect_class(cls):
-returnDecrypt
+90
+91
@argclass(
+name="decrypt",
+help="Display a movie style decryption effect.",
+description="decrypt | Movie style decryption effect.",
+epilog="Example: terminaltexteffects decrypt --typing-speed 2 --ciphertext-colors 008000 00cb00 00ff00 --final-gradient-stops eda000 --final-gradient-steps 12 --final-gradient-direction vertical",
+)
+@dataclass
+classDecryptConfig(ArgsDataClass):
+"""Configuration for the Decrypt effect.
+
+ Attributes:
+ typing_speed (int): Number of characters typed per keystroke.
+ ciphertext_colors (tuple[graphics.Color, ...]): Colors for the ciphertext. Color will be randomly selected for each character.
+ final_gradient_stops (tuple[graphics.Color, ...]): Colors for the character gradient. If only one color is provided, the characters will be displayed in that color.
+ final_gradient_steps (tuple[int, ...]): Number of gradient steps to use. More steps will create a smoother and longer gradient animation.
+ final_gradient_direction (graphics.Gradient.Direction): Direction of the final gradient."""
+
+typing_speed:int=ArgField(
+cmd_name="--typing-speed",
+type_parser=argvalidators.PositiveInt.type_parser,
+default=1,
+metavar=argvalidators.PositiveInt.METAVAR,
+help="Number of characters typed per keystroke.",
+)# type: ignore[assignment]
+"int : Number of characters typed per keystroke."
+
+ciphertext_colors:tuple[graphics.Color,...]=ArgField(
+cmd_name=["--ciphertext-colors"],
+type_parser=argvalidators.ColorArg.type_parser,
+nargs="+",
+default=("008000","00cb00","00ff00"),
+metavar=argvalidators.ColorArg.METAVAR,
+help="Space separated, unquoted, list of colors for the ciphertext. Color will be randomly selected for each character.",
+)# type: ignore[assignment]
+"tuple[graphics.Color, ...] : Colors for the ciphertext. Color will be randomly selected for each character."
+
+final_gradient_stops:tuple[graphics.Color,...]=ArgField(
+cmd_name=["--final-gradient-stops"],
+type_parser=argvalidators.ColorArg.type_parser,
+nargs="+",
+default=("eda000",),
+metavar=argvalidators.ColorArg.METAVAR,
+help="Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.",
+)# type: ignore[assignment]
+"tuple[graphics.Color, ...] : Colors for the character gradient. If only one color is provided, the characters will be displayed in that color."
+
+final_gradient_steps:tuple[int,...]=ArgField(
+cmd_name="--final-gradient-steps",
+type_parser=argvalidators.PositiveInt.type_parser,
+nargs="+",
+default=(12,),
+metavar=argvalidators.PositiveInt.METAVAR,
+help="Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.",
+)# type: ignore[assignment]
+"tuple[int, ...] : Number of gradient steps to use. More steps will create a smoother and longer gradient animation."
+
+final_gradient_direction:graphics.Gradient.Direction=ArgField(
+cmd_name="--final-gradient-direction",
+type_parser=argvalidators.GradientDirection.type_parser,
+default=graphics.Gradient.Direction.VERTICAL,
+metavar=argvalidators.GradientDirection.METAVAR,
+help="Direction of the final gradient.",
+)# type: ignore[assignment]
+"graphics.Gradient.Direction : Direction of the final gradient."
+
+@classmethod
+defget_effect_class(cls):
+returnDecrypt
@@ -1783,7 +2400,7 @@
- ciphertext_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--ciphertext-colors'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('008000','00cb00','00ff00'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the ciphertext. Color will be randomly selected for each character.')
+ ciphertext_colors:tuple[graphics.Color,...]=ArgField(cmd_name=['--ciphertext-colors'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('008000','00cb00','00ff00'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the ciphertext. Color will be randomly selected for each character.')class-attribute
@@ -1805,7 +2422,7 @@
- final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=arg_validators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=arg_validators.GradientDirection.METAVAR,help='Direction of the final gradient.')
+ final_gradient_direction:graphics.Gradient.Direction=ArgField(cmd_name='--final-gradient-direction',type_parser=argvalidators.GradientDirection.type_parser,default=graphics.Gradient.Direction.VERTICAL,metavar=argvalidators.GradientDirection.METAVAR,help='Direction of the final gradient.')class-attribute
@@ -1827,7 +2444,7 @@
- final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=arg_validators.PositiveInt.type_parser,nargs='+',default=(12),metavar=arg_validators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')
+ final_gradient_steps:tuple[int,...]=ArgField(cmd_name='--final-gradient-steps',type_parser=argvalidators.PositiveInt.type_parser,nargs='+',default=(12),metavar=argvalidators.PositiveInt.METAVAR,help='Space separated, unquoted, list of the number of gradient steps to use. More steps will create a smoother and longer gradient animation.')class-attribute
@@ -1849,7 +2466,7 @@
- final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=arg_validators.Color.type_parser,nargs='+',default=('eda000'),metavar=arg_validators.Color.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')
+ final_gradient_stops:tuple[graphics.Color,...]=ArgField(cmd_name=['--final-gradient-stops'],type_parser=argvalidators.ColorArg.type_parser,nargs='+',default=('eda000'),metavar=argvalidators.ColorArg.METAVAR,help='Space separated, unquoted, list of colors for the character gradient (applied from bottom to top). If only one color is provided, the characters will be displayed in that color.')class-attribute
@@ -1871,7 +2488,7 @@
- typing_speed:int=ArgField(cmd_name='--typing-speed',type_parser=arg_validators.PositiveInt.type_parser,default=1,metavar=arg_validators.PositiveInt.METAVAR,help='Number of characters typed per keystroke.')
+ typing_speed:int=ArgField(cmd_name='--typing-speed',type_parser=argvalidators.PositiveInt.type_parser,default=1,metavar=argvalidators.PositiveInt.METAVAR,help='Number of characters typed per keystroke.')class-attribute
diff --git a/effects/errorcorrect/index.html b/effects/errorcorrect/index.html
index 5e232ffa..7679053e 100755
--- a/effects/errorcorrect/index.html
+++ b/effects/errorcorrect/index.html
@@ -221,6 +221,480 @@
+
+
+
+
+
+
+
+
+
classErrorCorrect(BaseEffect[ErrorCorrectConfig]):
-"""Swaps characters from an incorrect initial position to the correct position.
-
- Attributes:
- effect_config (ErrorCorrectConfig): Configuration for the effect.
- terminal_config (TerminalConfig): Configuration for the terminal.
- """
-
-_config_cls=ErrorCorrectConfig
-_iterator_cls=ErrorCorrectIterator
-
-def__init__(self,input_data:str)->None:
-"""Initialize the effect with the provided input data.
-
- Args:
- input_data (str): The input data to use for the effect."""
-super().__init__(input_data)
+265
+266
classErrorCorrect(BaseEffect[ErrorCorrectConfig]):
+"""Swaps characters from an incorrect initial position to the correct position.
+
+ Attributes:
+ effect_config (ErrorCorrectConfig): Configuration for the effect.
+ terminal_config (TerminalConfig): Configuration for the terminal.
+ """
+
+_config_cls=ErrorCorrectConfig
+_iterator_cls=ErrorCorrectIterator
+
+def__init__(self,input_data:str)->None:
+"""Initialize the effect with the provided input data.
+
+ Args:
+ input_data (str): The input data to use for the effect."""
+super().__init__(input_data)
@@ -1556,17 +2173,17 @@
Source code in terminaltexteffects/effects/effect_errorcorrect.py
-