Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
John Major committed Dec 1, 2024
1 parent 69c0a91 commit 1678ae0
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 2 deletions.
2 changes: 1 addition & 1 deletion num_cols
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135
256
28 changes: 28 additions & 0 deletions run_them.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# Number of loops
LOOPS=100

# Timeout duration (set this variable before running the script)
TOUT=${TOUT:-10} # Default to 10 seconds if TOUT is not set

# Loop through the commands 100 times
for ((i=1; i<=LOOPS; i++)); do
echo "Iteration $i of $LOOPS"

# Execute each command with a timeout
timeout $TOUT run_spectrum_saturation_cycler.py
timeout $TOUT path_between_2_colors.py
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "~^." -z -y -u 30 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "===" -z -r -g -u 40 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "#####" -z -n -r -u 20 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "||--==" -z -g -y -u 60 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "XOxo." -z -r -y -u 25 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "-|" -z -g -u 15 -f

echo "Completed iteration $i"
done

echo "All iterations complete!"

26 changes: 26 additions & 0 deletions run_them.sh~
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

timeout $TOUT run_spectrum_saturation_cycler.py # will work with manually installed v0.4.1

timeout $TOUT path_between_2_colors.py. #will work with manually installed v0.4.1

timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33

timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "~^." -z -y -u 30 -f;

timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "===" -z -r -g -u 40 -f


timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "#####" -z -n -r -u 20 -f

timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "||--==" -z -g -y -u 60 -f


timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "XOxo." -z -r -y -u 25 -f


timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "-|" -z -g -u 15 -f

timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "|/\\*-o" -z -y -g -u 30 -f



33 changes: 33 additions & 0 deletions run_them2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Number of loops
LOOPS=100

# Timeout duration (set this variable before running the script)
TOUT=${TOUT:-10} # Default to 10 seconds if TOUT is not set

# Array of character patterns to cycle through
CHAR_PATTERNS=("~^." "===" "#####" "||--==" "XOxo." "-|" "|/\\*-o")

# Loop through the commands 100 times
for ((i=1; i<=LOOPS; i++)); do
echo "Iteration $i of $LOOPS"

# Dynamically pick a character pattern from the array
CURRENT_PATTERN=${CHAR_PATTERNS[$((i % ${#CHAR_PATTERNS[@]}))]}

# Execute commands with the current pattern
timeout $TOUT run_spectrum_saturation_cycler.py
timeout $TOUT path_between_2_colors.py
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -y -u 30 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -r -g -u 40 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -n -r -u 20 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -g -y -u 60 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -r -y -u 25 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -g -u 15 -f

echo "Completed iteration $i with pattern '$CURRENT_PATTERN'"
done

echo "All iterations complete!"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="rgbw_colorspace_converter",
version="0.1.3",
version="0.1.4",
author="John Major",
author_email="iamh2o@gmail.com",
description="Convert between RGB / HSV / HSL / HSI / HEX Color Spaces. And, emit the RGBW code for each.",
Expand Down

0 comments on commit 1678ae0

Please sign in to comment.