From a85890b3e6a5b678b47e1964731ad00cf4645f04 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 11:05:15 +0200 Subject: move non-executables to site subdir --- images/bg.gif | 2 -- images/bg.png | Bin 2416724 -> 0 bytes images/gif.py | 70 ----------------------------------------- images/remotecontrol-small.png | Bin 15993 -> 0 bytes images/remotecontrol.gif | 2 -- images/remotecontrol.png | Bin 18514 -> 0 bytes 6 files changed, 74 deletions(-) delete mode 100755 images/bg.gif delete mode 100644 images/bg.png delete mode 100755 images/gif.py delete mode 100644 images/remotecontrol-small.png delete mode 100755 images/remotecontrol.gif delete mode 100644 images/remotecontrol.png (limited to 'images') diff --git a/images/bg.gif b/images/bg.gif deleted file mode 100755 index 044324f..0000000 --- a/images/bg.gif +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -./gif.py diff --git a/images/bg.png b/images/bg.png deleted file mode 100644 index d08f9ed..0000000 Binary files a/images/bg.png and /dev/null differ diff --git a/images/gif.py b/images/gif.py deleted file mode 100755 index 26e8408..0000000 --- a/images/gif.py +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env python -import glob -import sys -import os -import math -import random -from PIL import Image - - -def color(hex_value): - h = hex_value.lstrip('#') - while len(h) < 8: - h += "f" - return tuple(int(h[i:i+2], 16) for i in (0, 2, 4, 6)) - -def rgb_to_v(c): - r, g, b = c[0]/255.0, c[1]/255.0, c[2]/255.0 - mx = max(r, g, b) - v = mx*100 - return v - -replace = color("#f58f44") -colors = [ - color("#191919"), - color("#373b41"), - ] - -def make(colors, inp=None): - p = len(colors) - w = int(128 / p) * p - h = int(128 / p) * p - - frames = [] - - for i in range(int(p*1*math.pi)): - if inp is None: - image = Image.new("RGBA", (w, h), colors[0]) - else: - image = Image.open(inp).convert("RGBA") - - for x in range(image.width): - for y in range(image.height): - f = 2 - r = random.randint(-f, f) - z = (i) - (y/(p/4)) + r - v = math.floor( (math.sin(z) + 1) * len(colors) * 0.5) - c = colors[v] - if inp is not None: - existing = image.getpixel((x, y)) - if existing[:3] == replace[:3]: - image.putpixel((x,y), c) - else: - image.putpixel((x,y), c) - - frames.append(image.convert("P")) - - - frames[0].save(sys.stdout, mode="P", format="GIF", append_images=frames[1:], save_all=True, duration=100, loop=0) - - -template = None -if len(sys.argv) > 1 and os.path.exists(sys.argv[1]): - template = sys.argv[1] - colors = colors + [ color("#f58f44") ] - -sorted(colors, key=rgb_to_v) -make(colors, inp=template) -#make("dist/images/remotecontrol.gif", colors2, inp="images/remotecontrol-small.png") - - diff --git a/images/remotecontrol-small.png b/images/remotecontrol-small.png deleted file mode 100644 index fc293d0..0000000 Binary files a/images/remotecontrol-small.png and /dev/null differ diff --git a/images/remotecontrol.gif b/images/remotecontrol.gif deleted file mode 100755 index 5e73b92..0000000 --- a/images/remotecontrol.gif +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -./gif.py remotecontrol-small.png diff --git a/images/remotecontrol.png b/images/remotecontrol.png deleted file mode 100644 index 62d6473..0000000 Binary files a/images/remotecontrol.png and /dev/null differ -- cgit v1.2.1