Pixel Art Canvas
-Click and drag to paint. Your changes are live.
+Click and drag to paint. Your changes are live. Gallery
diff --git a/config.py b/config.py index 5f1e686..d8d9c91 100644 --- a/config.py +++ b/config.py @@ -24,7 +24,7 @@ ScreenY = 40 DefaultBrightness = 0.6 -Serial = "/dev/ttyACM0" +Serial = "/dev/ttyTeensy" # kills app after some seconds if it sends no data NoDataTimeout = 40 @@ -47,6 +47,7 @@ Apps = [ AppConfig(guiname="Digi Clock", name="digiclock", cmd="./digi_clock.py"), AppConfig(guiname="Text Scroller MQTT", name="textscroll", cmd="./textscroll.py"), AppConfig(guiname="Spot", name="spot", cmd="./spot.py", white=True), + AppConfig(guiname="Fireworks", name="fireworks", cmd="./fireworks.py", white=False), AppConfig(guiname="Flicker", name="flicker", cmd="./flicker"), AppConfig(guiname="Pixelflut", name="pixelflut", cmd="./pixelflut", persistent=True), @@ -60,17 +61,17 @@ Apps = [ AppConfig(guiname="Wget Video/Gif/Images", name="wget", cmd="./wget.sh"), # juergen/pixelfoo - AppConfig(guiname="Congress noise", name="cnoise", cmd="./cnoise", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Color code", name="colorcode", cmd="./colorcode", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Game of Life", name="life", cmd="./life", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Matrix Code", name="matrix-code", cmd="./matrix-code", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Lorenz Attractor", name="lorenz", cmd="./lorenz", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Primes", name="primes", cmd="./primes", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Alien Message", name="alien-message", cmd="./alien-message", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Dual Moodlight", name="bimood", cmd="./bimood", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Maze", name="maze", cmd="./maze", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Dual Maze", name="dualmaze", cmd="./dualmaze", path="pixelfoo-apps/target/release/"), - AppConfig(guiname="Predator & Prey", name="predprey", cmd="./predprey", path="pixelfoo-apps/target/release/"), + AppConfig(guiname="Congress noise", name="cnoise", cmd="./cnoise"), + AppConfig(guiname="Color code", name="colorcode", cmd="./colorcode"), + AppConfig(guiname="Game of Life", name="life", cmd="./life"), + AppConfig(guiname="Matrix Code", name="matrix-code", cmd="./matrix-code"), + AppConfig(guiname="Lorenz Attractor", name="lorenz", cmd="./lorenz"), + AppConfig(guiname="Primes", name="primes", cmd="./primes"), + AppConfig(guiname="Alien Message", name="alien-message", cmd="./alien-message"), + AppConfig(guiname="Dual Moodlight", name="bimood", cmd="./bimood"), + AppConfig(guiname="Maze", name="maze", cmd="./maze"), + AppConfig(guiname="Dual Maze", name="dualmaze", cmd="./dualmaze"), + AppConfig(guiname="Predator & Prey", name="predprey", cmd="./predprey"), # App(guiname="Beat Saber Ceiling", name="beatsaberceiling", cmd="./beatsaberceiling.py", path="beatsaberceiling"), diff --git a/configs/pixelthudconf.py b/configs/pixelthudconf.py new file mode 100644 index 0000000..6be5ddb --- /dev/null +++ b/configs/pixelthudconf.py @@ -0,0 +1,8 @@ +Apps = [ + # pixelthud + {"guiname": "Fading Pixels", "name": "fadingpxls", "cmd": "apps/fading_pixels.py", "persistent": False}, + {"guiname": "Plane Wave", "name": "planewave", "cmd": "apps/plane_wave.py", "persistent": False}, + {"guiname": "Rock-paper-scissors-spock-lizard", "name": "rps", "cmd": "apps/rps.py", "persistent": False}, + {"guiname": "Doom Fire", "name": "doomfire", "cmd": "apps/doom_fire_psx2.py", "persistent": False}, + {"guiname": "Maxwell FDTD", "name": "fdtd", "cmd": "apps/fdtd.py", "persistent": False}, +] diff --git a/deckensteuerung.service b/deckensteuerung.service index 5e6dbce..cd99346 100644 --- a/deckensteuerung.service +++ b/deckensteuerung.service @@ -2,6 +2,9 @@ Description=Deckensteuerung Server [Service] +User=lounge +Group=uucp + Type=exec ExecStart=/usr/bin/python3 -u /home/ds/pixelserver2/main.py WorkingDirectory=/home/ds/pixelserver2 diff --git a/html/draw.html b/html/draw.html index e56568e..87e8512 100644 --- a/html/draw.html +++ b/html/draw.html @@ -13,8 +13,10 @@ --header-color: #1a202c; --subheader-color: #718096; --toolbar-bg: #ffffff; - --button-bg: #e53e3e; - --button-hover-bg: #c53030; + --button-red-bg: #e53e3e; + --button-red-hover-bg: #c53030; + --button-blue-bg: #3b82f6; + --button-blue-hover-bg: #3167bf; --swatch-border: #e2e8f0; --active-swatch-border: #3b82f6; --input-bg: #f7fafc; @@ -154,9 +156,8 @@ color: var(--text-color); } - #clearCanvas { + .control-group button { padding: 0.6rem 1rem; - background-color: var(--button-bg); color: white; border: none; border-radius: 0.5rem; @@ -165,8 +166,20 @@ transition: background-color 0.2s ease; } + #clearCanvas { + background-color: var(--button-red-bg); + } + #clearCanvas:hover { - background-color: var(--button-hover-bg); + background-color: var(--button-red-hover-bg); + } + + #saveCanvas { + background-color: var(--button-blue-bg); + } + + #saveCanvas:hover { + background-color: var(--button-blue-hover-bg); } #grid-container { @@ -191,7 +204,7 @@
Click and drag to paint. Your changes are live.
+Click and drag to paint. Your changes are live. Gallery