Skip to content

Instantly share code, notes, and snippets.

View bmorphism's full-sized avatar
🦍
annealing information lattice since *2069*

Barton Rhodes bmorphism

🦍
annealing information lattice since *2069*
View GitHub Profile
@bmorphism
bmorphism / VISUALIZATIONS.md
Created January 8, 2026 15:06
Gay-TOFU: Interactive visualizations guide

Interactive Visualizations Guide

Four interactive demonstrations of Gay-TOFU color sequences and error correction


1. world.html — Basic Color Generation Demo

Purpose: Introduction to plastic constant color generation
File: world.html (12KB)

@bmorphism
bmorphism / HAMMING_SWARM.md
Created January 8, 2026 15:06
Gay-TOFU: Hamming swarm error correction structure

Hamming Swarm: Error-Correcting Structure in 3×3×3 Alphabet Tensor

Overview

The Hamming Swarm is a clever overlay structure on the 3×3×3 alphabet tensor that creates an error-correcting network using Hamming distance relationships. By mapping 26 letters + 1 sigil (🌈) to a 27-position cube and connecting them via Hamming distances in 5-bit binary encodings, we create a self-organizing swarm with natural error detection and correction properties.

Why This Works

1. 5-Bit Encoding (32 positions, using 27)

@bmorphism
bmorphism / WHY_PLASTIC_2D_OPTIMAL.md
Created January 8, 2026 15:06
Gay-TOFU: Why plastic constant is optimal for 2D

Why Plastic Constant is 2D Optimal for Colors

The Core Mathematical Principle

For optimal uniform coverage in n dimensions, use the root of x^(n+1) = x + 1

Dimension Equation Constant Value Use Case
1D x² = x + 1 Golden Ratio (φ) 1.618... Just hue rotation
2D x³ = x + 1 Plastic Constant (φ₂) 1.3247... Hue + saturation
@bmorphism
bmorphism / PROJECT_SUMMARY.md
Created January 8, 2026 15:06
Gay-TOFU: Executive summary

Gay-TOFU: Executive Summary

Low-Discrepancy Color Sequences with Bijective TOFU Authentication

Version: 1.0
Status: ✅ Production Ready
Date: 2026-01-08


@bmorphism
bmorphism / QUICKSTART.md
Created January 8, 2026 15:06
Gay-TOFU: 5-minute quickstart guide

Gay-TOFU Quick Start Guide

Low-Discrepancy Color Sequences + Trust-On-First-Use Authentication

What You Have

Julia Implementation (3850+ lines)

  • Location: ~/ies/gay-tofu/low-discrepancy-sequences/
  • 8 sequences, 10 MCP tools, fully tested
@bmorphism
bmorphism / README.md
Created January 8, 2026 15:06
Gay-TOFU: Bijective color sequences - README

🌈 Gay-TOFU

Bijective Low-Discrepancy Color Sequences with TOFU Authentication

Status Tests Lines Docs

The only color sequence system with full bijection support. Given a color, recover the index that generated it.

@bmorphism
bmorphism / visualize-optimality.html
Created January 8, 2026 15:06
Gay-TOFU: Plastic constant optimality proof
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Why Plastic Constant is 2D Optimal</title>
<style>
body {
font-family: monospace;
background: #0a0a0a;
color: #e0e0e0;
@bmorphism
bmorphism / hamming-codec.html
Created January 8, 2026 15:06
Gay-TOFU: Error-correcting codec demo
<!DOCTYPE html>
<html>
<head>
<title>Hamming Swarm Error-Correcting Codec</title>
<style>
body {
margin: 0;
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
color: #e0e0e0;
font-family: 'SF Mono', 'Consolas', monospace;
@bmorphism
bmorphism / alphabet-tensor.html
Created January 8, 2026 15:06
Gay-TOFU: 3×3×3 Hamming swarm visualization
<!DOCTYPE html>
<html>
<head>
<title>3×3×3 Alphabet Tensor with Hamming Swarm</title>
<script src="https://enkimute.github.io/ganja.js/ganja.js"></script>
<style>
body { margin: 0; background: #0a0a0a; color: #e0e0e0; font-family: 'SF Mono', monospace; }
.controls {
position: fixed; top: 10px; left: 10px; z-index: 100;
background: rgba(0,0,0,0.8); padding: 15px; border-radius: 8px;
@bmorphism
bmorphism / world.html
Created January 8, 2026 15:06
Gay-TOFU: Interactive color generation demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gay-TOFU Demo - Bijective Color Sequences</title>
<style>
* {
margin: 0;
padding: 0;