Skip to content

Instantly share code, notes, and snippets.

View badvision's full-sized avatar

Brendan Robert badvision

View GitHub Profile
@badvision
badvision / README.md
Last active February 1, 2019 04:56
SCRIPT-8
*= $6000;
!cpu 65c02;
PLOT = $F800
CLEARSCR= $F832
SETCOLOR= $F864
LORES = $C056
GFX = $C050
CURRENT = $0
lda LORES
@badvision
badvision / gen_gradient_images.sh
Created January 25, 2024 18:47
Create random images
#!/bin/bash
for (( i=1; i<=500; i++ ))
do
# Generate a random filename
filename="random_image_${i}.png"
# Use ImageMagick to create a random 100x100 pixel image
color1=$(shuf -e $(convert -list color | grep srgb | cut -d' ' -f1) | head -1 | tr [:upper:] [:lower:])
color2=$(shuf -e $(convert -list color | grep srgb | cut -d' ' -f1) | head -1 | tr [:upper:] [:lower:])
@badvision
badvision / squix_font_editor.html
Created June 20, 2025 03:18
Squix / ESP32 font editor
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OLED Font Simulator - Squix 3.0 Format</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #1a1a1a;