Skip to content

Commit

Permalink
Let's simplify the color script. Reduced script size by over 250 lines!
Browse files Browse the repository at this point in the history
  • Loading branch information
exarobibliologist committed Dec 22, 2024
1 parent 11fb4ce commit 531b33d
Showing 1 changed file with 9 additions and 259 deletions.
268 changes: 9 additions & 259 deletions colorize
Original file line number Diff line number Diff line change
Expand Up @@ -3,268 +3,18 @@
###################################
# LOOK! IT'S A RAINBOW OF COLORS! #
###################################
Color_Off='\e[0m' # Text Reset

Color000='\e[38;05;0m'
Color001='\e[38;05;1m'
Color002='\e[38;05;2m'
Color003='\e[38;05;3m'
Color004='\e[38;05;4m'
Color005='\e[38;05;5m'
Color006='\e[38;05;6m'
Color007='\e[38;05;7m'
Color008='\e[38;05;8m'
Color009='\e[38;05;9m'
Color010='\e[38;05;10m'
Color011='\e[38;05;11m'
Color012='\e[38;05;12m'
Color013='\e[38;05;13m'
Color014='\e[38;05;14m'
Color015='\e[38;05;15m'
Color016='\e[38;05;16m'
Color017='\e[38;05;17m'
Color018='\e[38;05;18m'
Color019='\e[38;05;19m'
Color020='\e[38;05;20m'
Color021='\e[38;05;21m'
Color022='\e[38;05;22m'
Color023='\e[38;05;23m'
Color024='\e[38;05;24m'
Color025='\e[38;05;25m'
Color026='\e[38;05;26m'
Color027='\e[38;05;27m'
Color028='\e[38;05;28m'
Color029='\e[38;05;29m'
Color030='\e[38;05;30m'
Color031='\e[38;05;31m'
Color032='\e[38;05;32m'
Color033='\e[38;05;33m'
Color034='\e[38;05;34m'
Color035='\e[38;05;35m'
Color036='\e[38;05;36m'
Color037='\e[38;05;37m'
Color038='\e[38;05;38m'
Color039='\e[38;05;39m'
Color040='\e[38;05;40m'
Color041='\e[38;05;41m'
Color042='\e[38;05;42m'
Color043='\e[38;05;43m'
Color044='\e[38;05;44m'
Color045='\e[38;05;45m'
Color046='\e[38;05;46m'
Color047='\e[38;05;47m'
Color048='\e[38;05;48m'
Color049='\e[38;05;49m'
Color050='\e[38;05;50m'
Color051='\e[38;05;51m'
Color052='\e[38;05;52m'
Color053='\e[38;05;53m'
Color054='\e[38;05;54m'
Color055='\e[38;05;55m'
Color056='\e[38;05;56m'
Color057='\e[38;05;57m'
Color058='\e[38;05;58m'
Color059='\e[38;05;59m'
Color060='\e[38;05;60m'
Color061='\e[38;05;61m'
Color062='\e[38;05;62m'
Color063='\e[38;05;63m'
Color064='\e[38;05;64m'
Color065='\e[38;05;65m'
Color066='\e[38;05;66m'
Color067='\e[38;05;67m'
Color068='\e[38;05;68m'
Color069='\e[38;05;69m'
Color070='\e[38;05;70m'
Color071='\e[38;05;71m'
Color072='\e[38;05;72m'
Color073='\e[38;05;73m'
Color074='\e[38;05;74m'
Color075='\e[38;05;75m'
Color076='\e[38;05;76m'
Color077='\e[38;05;77m'
Color078='\e[38;05;78m'
Color079='\e[38;05;79m'
Color080='\e[38;05;80m'
Color081='\e[38;05;81m'
Color082='\e[38;05;82m'
Color083='\e[38;05;83m'
Color084='\e[38;05;84m'
Color085='\e[38;05;85m'
Color086='\e[38;05;86m'
Color087='\e[38;05;87m'
Color088='\e[38;05;88m'
Color089='\e[38;05;89m'
Color090='\e[38;05;90m'
Color091='\e[38;05;91m'
Color092='\e[38;05;92m'
Color093='\e[38;05;93m'
Color094='\e[38;05;94m'
Color095='\e[38;05;95m'
Color096='\e[38;05;96m'
Color097='\e[38;05;97m'
Color098='\e[38;05;98m'
Color099='\e[38;05;99m'
Color100='\e[38;05;100m'
Color101='\e[38;05;101m'
Color102='\e[38;05;102m'
Color103='\e[38;05;103m'
Color104='\e[38;05;104m'
Color105='\e[38;05;105m'
Color106='\e[38;05;106m'
Color107='\e[38;05;107m'
Color108='\e[38;05;108m'
Color109='\e[38;05;109m'
Color110='\e[38;05;110m'
Color111='\e[38;05;111m'
Color112='\e[38;05;112m'
Color113='\e[38;05;113m'
Color114='\e[38;05;114m'
Color115='\e[38;05;115m'
Color116='\e[38;05;116m'
Color117='\e[38;05;117m'
Color118='\e[38;05;118m'
Color119='\e[38;05;119m'
Color120='\e[38;05;120m'
Color121='\e[38;05;121m'
Color122='\e[38;05;122m'
Color123='\e[38;05;123m'
Color124='\e[38;05;124m'
Color125='\e[38;05;125m'
Color126='\e[38;05;126m'
Color127='\e[38;05;127m'
Color128='\e[38;05;128m'
Color129='\e[38;05;129m'
Color130='\e[38;05;130m'
Color131='\e[38;05;131m'
Color132='\e[38;05;132m'
Color133='\e[38;05;133m'
Color134='\e[38;05;134m'
Color135='\e[38;05;135m'
Color136='\e[38;05;136m'
Color137='\e[38;05;137m'
Color138='\e[38;05;138m'
Color139='\e[38;05;139m'
Color140='\e[38;05;140m'
Color141='\e[38;05;141m'
Color142='\e[38;05;142m'
Color143='\e[38;05;143m'
Color144='\e[38;05;144m'
Color145='\e[38;05;145m'
Color146='\e[38;05;146m'
Color147='\e[38;05;147m'
Color148='\e[38;05;148m'
Color149='\e[38;05;149m'
Color150='\e[38;05;150m'
Color151='\e[38;05;151m'
Color152='\e[38;05;152m'
Color153='\e[38;05;153m'
Color154='\e[38;05;154m'
Color155='\e[38;05;155m'
Color156='\e[38;05;156m'
Color157='\e[38;05;157m'
Color158='\e[38;05;158m'
Color159='\e[38;05;159m'
Color160='\e[38;05;160m'
Color161='\e[38;05;161m'
Color162='\e[38;05;162m'
Color163='\e[38;05;163m'
Color164='\e[38;05;164m'
Color165='\e[38;05;165m'
Color166='\e[38;05;166m'
Color167='\e[38;05;167m'
Color168='\e[38;05;168m'
Color169='\e[38;05;169m'
Color170='\e[38;05;170m'
Color171='\e[38;05;171m'
Color172='\e[38;05;172m'
Color173='\e[38;05;173m'
Color174='\e[38;05;174m'
Color175='\e[38;05;175m'
Color176='\e[38;05;176m'
Color177='\e[38;05;177m'
Color178='\e[38;05;178m'
Color179='\e[38;05;179m'
Color180='\e[38;05;180m'
Color181='\e[38;05;181m'
Color182='\e[38;05;182m'
Color183='\e[38;05;183m'
Color184='\e[38;05;184m'
Color185='\e[38;05;185m'
Color186='\e[38;05;186m'
Color187='\e[38;05;187m'
Color188='\e[38;05;188m'
Color189='\e[38;05;189m'
Color190='\e[38;05;190m'
Color191='\e[38;05;191m'
Color192='\e[38;05;192m'
Color193='\e[38;05;193m'
Color194='\e[38;05;194m'
Color195='\e[38;05;195m'
Color196='\e[38;05;196m'
Color197='\e[38;05;197m'
Color198='\e[38;05;198m'
Color199='\e[38;05;199m'
Color200='\e[38;05;200m'
Color201='\e[38;05;201m'
Color202='\e[38;05;202m'
Color203='\e[38;05;203m'
Color204='\e[38;05;204m'
Color205='\e[38;05;205m'
Color206='\e[38;05;206m'
Color207='\e[38;05;207m'
Color208='\e[38;05;208m'
Color209='\e[38;05;209m'
Color210='\e[38;05;210m'
Color211='\e[38;05;211m'
Color212='\e[38;05;212m'
Color213='\e[38;05;213m'
Color214='\e[38;05;214m'
Color215='\e[38;05;215m'
Color216='\e[38;05;216m'
Color217='\e[38;05;217m'
Color218='\e[38;05;218m'
Color219='\e[38;05;219m'
Color220='\e[38;05;220m'
Color221='\e[38;05;221m'
Color222='\e[38;05;222m'
Color223='\e[38;05;223m'
Color224='\e[38;05;224m'
Color225='\e[38;05;225m'
Color226='\e[38;05;226m'
Color227='\e[38;05;227m'
Color228='\e[38;05;228m'
Color229='\e[38;05;229m'
Color230='\e[38;05;230m'
Color231='\e[38;05;231m'
Color232='\e[38;05;232m'
Color233='\e[38;05;233m'
Color234='\e[38;05;234m'
Color235='\e[38;05;235m'
Color236='\e[38;05;236m'
Color237='\e[38;05;237m'
Color238='\e[38;05;238m'
Color239='\e[38;05;239m'
Color240='\e[38;05;240m'
Color241='\e[38;05;241m'
Color242='\e[38;05;242m'
Color243='\e[38;05;243m'
Color244='\e[38;05;244m'
Color245='\e[38;05;245m'
Color246='\e[38;05;246m'
Color247='\e[38;05;247m'
Color248='\e[38;05;248m'
Color249='\e[38;05;249m'
Color250='\e[38;05;250m'
Color251='\e[38;05;251m'
Color252='\e[38;05;252m'
Color253='\e[38;05;253m'
Color254='\e[38;05;254m'
Color255='\e[38;05;255m'
color() { echo -e "\e[38;05;$1m"; } # Use color codes as arguments
bold() { echo -e "\e[1;38;05;$1m"; } # Bold versions
reset() { echo -e "\e[0m"; } # Reset to default

function color_rainbow()
{
for i in {000..255}; do echo -e "\e[38;05;${i}m Color${i}\e[0m"; done | less
for i in {0..255}; do echo -e "\e[38;05;${i}m color ${i}\e[0m"; done | less
}

function bold_rainbow()
{
for i in {0..255}; do echo -e "\e[1;38;05;${i}m bold ${i}\e[0m"; done | less
}

function color_waterfall()
Expand Down

0 comments on commit 531b33d

Please sign in to comment.