diff options
| author | 2026-04-25 14:28:02 -0400 | |
|---|---|---|
| committer | 2026-04-25 14:46:39 -0400 | |
| commit | 0848d6c89defb95966deeecd1c61352deccbeaec (patch) | |
| tree | 21a2e74fcabb85c02fda8959badc08b0f7de0261 /themes/iroha/colors.txt | |
| parent | ef40a5119a77280863c21ba67397818514714ccc (diff) | |
| download | dotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.tar.gz dotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.tar.bz2 dotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.zip | |
New CPU + Cleanup
Diffstat (limited to 'themes/iroha/colors.txt')
| -rw-r--r-- | themes/iroha/colors.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/themes/iroha/colors.txt b/themes/iroha/colors.txt new file mode 100644 index 0000000..a898266 --- /dev/null +++ b/themes/iroha/colors.txt @@ -0,0 +1,39 @@ +0, 0, 0 +215, 95, 0 +175, 95, 0 +255, 215, 95 +0, 95, 95 +255, 95, 135 +255, 175, 0 +238, 238, 238 +128, 128, 128 // 8 +215, 135, 0 +175, 135, 0 +255, 255, 95 +0, 135, 95 +255, 135, 135 +255, 215, 0 +255, 255, 255 + +def vec4_to_hex(colors): + for c in colors: + print('#%08x' % ( + (round(c[0] * 255) << 24) & 0xFF000000| + (round(c[1] * 255) << 16) & 0x00FF0000| + (round(c[2] * 255) << 8 ) & 0x0000FF00| + (round(c[3] * 255 ) & 0x000000FF))) + +def hex_to_vec4(colors): + for c in colors: + print('%d,%d,%d,%d' % ( + (c >> 24 & 0xFF), + (c >> 16 & 0xFF), + (c >> 8 & 0xFF), + (c & 0xFF))) + +def hex_to_vec3(colors): + for c in colors: + print('%d,%d,%d' % ( + (c >> 16 & 0xFF), + (c >> 8 & 0xFF), + (c & 0xFF))) |