diff --git a/Windows-Scripts/pi-ascii-powershell.ps1 b/Windows-Scripts/pi-ascii-powershell.ps1 new file mode 100644 index 0000000..94c7b09 --- /dev/null +++ b/Windows-Scripts/pi-ascii-powershell.ps1 @@ -0,0 +1,38 @@ +# TEXT TO ASCII ART GENERATOR https://patorjk.com/software/taag/#p=display&f=Graceful&t=PRINCESS+PI&x=none&v=4&h=4&w=80&we=false +# IMAGE TO ASCII ART GENERATOR https://www.asciiart.eu/image-to-ascii +Clear-Host # cleanup +Write-Host -ForegroundColor Magenta @' +=--= =----= + =--= -------= + =--= --------= + =----= --- =---------= + ----= =--- ---==++=----:-----= + =-----= - ---- ========----::----= + =------= ----=+===-::::::::=+**++===+# + ==-----=----=+**+=:::-======++******+==+## + =------=-=+*:::-=============+*****+==+*## + =------=+=:-++==--+=++===+====+***+===***= + =--------+*===---+===+===+++==+**=+==+**+- + =------=+===--=+++==++++%%*==**====+**+.- - + #=---=+====-=+++=+++*+.%+-==**=-==+**+.. -- + #**+--+========++++#%#**=--==**--==+**=..: =- + *****+======+-+++*%%@@%=---==**--+=+*--:..- = + #*****=====+=-=++***#%#-----=**=-+=+*=---:.. %% + %****+====+=--=+++.:+*=-------=*-===**=---:..- %% + #***+=====------=:.-=----------==+=+**+---...: %%%%#% + #**+====:---------=-------------+=+=***=-....: %%##%%## + %***====..:---------------------==+=-****:.....+%#%%#%%%%# + #**+==*=...---------------:.----+==--=***=....##%#######%% + #***+=+*=...--------------:..:--=+=----+***:...#%###%%##% + #**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% = + #***+==+**...:----------:.....:--+=------==**++##%#%%%%% =- + #***#+==+**=.................+*---+=------=#+=##%%##%%%#%=--- + %#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=---- + %#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*----- + *===+****-..- %###%%%+------=*######%%%%%%%##%#*------ + +===+****-.- %##%%%*-----#########%####%#####*------- + ____ ____ __ __ _ ___ ____ ____ ____ ____ __ +( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( ) + ) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )( +(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__) +'@ \ No newline at end of file diff --git a/customscripts/piascii-bash.sh b/customscripts/piascii-bash.sh new file mode 100644 index 0000000..083218c --- /dev/null +++ b/customscripts/piascii-bash.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# TEXT TO ASCII ART GENERATOR https://patorjk.com/software/taag/#p=display&f=Graceful&t=PRINCESS+PI&x=none&v=4&h=4&w=80&we=false +# IMAGE TO ASCII ART GENERATOR https://www.asciiart.eu/image-to-ascii +clear +piascii=$(cat << 'EOF' +=--= =----= + =--= -------= + =--= --------= + =----= --- =---------= + ----= =--- ---==++=----:-----= + =-----= - ---- ========----::----= + =------= ----=+===-::::::::=+**++===+# + ==-----=----=+**+=:::-======++******+==+## + =------=-=+*:::-=============+*****+==+*## + =------=+=:-++==--+=++===+====+***+===***= + =--------+*===---+===+===+++==+**=+==+**+- + =------=+===--=+++==++++%%*==**====+**+.- - + #=---=+====-=+++=+++*+.%+-==**=-==+**+.. -- + #**+--+========++++#%#**=--==**--==+**=..: =- + *****+======+-+++*%%@@%=---==**--+=+*--:..- = + #*****=====+=-=++***#%#-----=**=-+=+*=---:.. %% + %****+====+=--=+++.:+*=-------=*-===**=---:..- %% + #***+=====------=:.-=----------==+=+**+---...: %%%%#% + #**+====:---------=-------------+=+=***=-....: %%##%%## + %***====..:---------------------==+=-****:.....+%#%%#%%%%# + #**+==*=...---------------:.----+==--=***=....##%#######%% + #***+=+*=...--------------:..:--=+=----+***:...#%###%%##% + #**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% = + #***+==+**...:----------:.....:--+=------==**++##%#%%%%% =- + #***#+==+**=.................+*---+=------=#+=##%%##%%%#%=--- + %#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=---- + %#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*----- + *===+****-..- %###%%%+------=*######%%%%%%%##%#*------ + +===+****-.- %##%%%*-----#########%####%#####*------- + ____ ____ __ __ _ ___ ____ ____ ____ ____ __ +( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( ) + ) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )( +(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__) +EOF +); + +echo -e "\033[35m$piascii\033[0m" \ No newline at end of file diff --git a/customscripts/sparkle-pi-ascii-bash.sh b/customscripts/sparkle-pi-ascii-bash.sh new file mode 100644 index 0000000..6bbe022 --- /dev/null +++ b/customscripts/sparkle-pi-ascii-bash.sh @@ -0,0 +1,86 @@ +#!/usr/bin/env bash +clear + +# Define an array of standard 16-color ANSI foreground codes +colors=( + "\e[31m" # Red + "\e[33m" # Yellow + "\e[32m" # Green + "\e[36m" # Cyan + "\e[34m" # Blue + "\e[35m" # Magenta +) +color_count=${#colors[@]} +color_index=0 + +shuffle_colors() { + local i tmp rand + # Start from the last element and move backwards + for ((i=${#colors[@]}-1; i>0; i--)); do + # Generate a random index between 0 and i (inclusive) + rand=$(( RANDOM % (i + 1) )) + + # Swap elements at index 'i' and 'rand' + tmp="${colors[i]}" + colors[i]="${colors[rand]}" + colors[rand]="$tmp" + done +} + +# randomize dem color postions +shuffle_colors + +# Reset code to clear colors at the end of output +reset="\e[0m" +read -r -d '' ascii_art << 'EOF' +--= =----= + =--= -------= + =--= --------= + =----= --- =---------= + ----= =--- ---==++=----:-----= + =-----= - ---- ========----::----= + =------= ----=+===-::::::::=+**++===+# + ==-----=----=+**+=:::-======++******+==+## + =------=-=+*:::-=============+*****+==+*## + =------=+=:-++==--+=++===+====+***+===***= + =--------+*===---+===+===+++==+**=+==+**+- + =------=+===--=+++==++++%%*==**====+**+.- - + #=---=+====-=+++=+++*+.%+-==**=-==+**+.. -- + #**+--+========++++#%#**=--==**--==+**=..: =- + *****+======+-+++*%%@@%=---==**--+=+*--:..- = + #*****=====+=-=++***#%#-----=**=-+=+*=---:.. %% + %****+====+=--=+++.:+*=-------=*-===**=---:..- %% + #***+=====------=:.-=----------==+=+**+---...: %%%%#% + #**+====:---------=-------------+=+=***=-....: %%##%%## + %***====..:---------------------==+=-****:.....+%#%%#%%%%# + #**+==*=...---------------:.----+==--=***=....##%#######%% + #***+=+*=...--------------:..:--=+=----+***:...#%###%%##% + #**+==+*=..:-------------:...:--++------=***.:+##%#%%%#% = + #***+==+**...:----------:.....:--+=------==**++##%#%%%%% =- + #***#+==+**=.................+*---+=------=#+=##%%##%%%#%=--- + %#**#%*===+***-.....---...=+.:*#=----------=##*#%####%%%%#=---- + %#### +===****-...: -+##=#%%+---------+###%%%%%%#%%%%%*----- + *===+****-..- %###%%%+------=*######%%%%%%%##%#*------ + +===+****-.- %##%%%*-----#########%####%#####*------- + ____ ____ __ __ _ ___ ____ ____ ____ ____ __ +( _ \( _ \( )( ( \ / __)( __)/ ___)/ ___) ( _ \( ) + ) __/ ) / )( / /( (__ ) _) \___ \\___ \ ) __/ )( +(__) (__\_)(__)\_)__) \___)(____)(____/(____/ (__) (__) +EOF + +# Process the art character-by-character +for (( i=0; i<${#ascii_art}; i++ )); do + char="${ascii_art:$i:1}" + + # If the character is a space or a newline, print it raw without wasting a color + if [[ "$char" == " " || "$char" == $'\n' ]]; then + printf "%s" "$char" + else + # Assign a color, print the letter, and rotate the index cycle + printf "%b%s" "${colors[$color_index]}" "$char" + color_index=$(( (color_index + 1) % color_count )) + fi +done + +# Always clear the terminal color state back to default at the end +printf "%b\n" "$reset"