aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-10-30 19:01:51 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-10-30 19:01:51 +0100
commit8350aa04f51882f11bd40a51eacd4a0c47bafc02 (patch)
tree69e94b2e26ca370108c476eade15150c34b307d1 /scripts
parent1cb7eb48c4e81626d3df6736fd0e2a866674def5 (diff)
parent2b09251962f4b80eeee1c6e11bde8d29536915e6 (diff)
Merge branch 'main' of git.sr.ht:~rbdr/dotfiles
Diffstat (limited to 'scripts')
-rw-r--r--scripts/colors.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/scripts/colors.py b/scripts/colors.py
new file mode 100644
index 0000000..ccc6d51
--- /dev/null
+++ b/scripts/colors.py
@@ -0,0 +1,59 @@
+#!/usr/bin/env python3
+
+# ANSI color codes
+colors = {
+ 'black': 30,
+ 'red': 31,
+ 'green': 32,
+ 'yellow': 33,
+ 'blue': 34,
+ 'magenta': 35,
+ 'cyan': 36,
+ 'white': 37,
+ 'bright_black': 90,
+ 'bright_red': 91,
+ 'bright_green': 92,
+ 'bright_yellow': 93,
+ 'bright_blue': 94,
+ 'bright_magenta': 95,
+ 'bright_cyan': 96,
+ 'bright_white': 97
+}
+
+backgrounds = {
+ 'black': 40,
+ 'red': 41,
+ 'green': 42,
+ 'yellow': 43,
+ 'blue': 44,
+ 'magenta': 45,
+ 'cyan': 46,
+ 'white': 47,
+ 'bright_black': 100,
+ 'bright_red': 101,
+ 'bright_green': 102,
+ 'bright_yellow': 103,
+ 'bright_blue': 104,
+ 'bright_magenta': 105,
+ 'bright_cyan': 106,
+ 'bright_white': 107
+}
+
+pangram = "Sphinx of black quartz, judge my vow"
+
+print("=" * 60)
+print("QUARTZ SPHINX PANGRAM - ALL COLOR COMBINATIONS")
+print("=" * 60)
+print()
+
+for bg_name, bg_code in backgrounds.items():
+ print(f"\n--- Background: {bg_name.upper().replace('_', ' ')} ---")
+ for fg_name, fg_code in colors.items():
+ # Create the ANSI escape sequence
+ colored_text = f"\033[{fg_code};{bg_code}m{pangram}\033[0m"
+ print(f"{fg_name:20} | {colored_text}")
+ print()
+
+print("=" * 60)
+print("Total combinations:", len(colors) * len(backgrounds))
+print("=" * 60)