An infinite, animated 2D procedural cityscape generated purely from discrete bitwise logic, integer arithmetic, and a cosine luminance transform. No noise functions (Perlin/Simplex), no pre-rendered assets, and no explicit geometric grammars—urban morphology emerges entirely from binary coordinate interactions.
| Visual Regime | Primary Trait | Example Traits |
|---|---|---|
| Operator Fields | Binary Logic & Arithmetic | AND, OR, XOR, ADD, MULT, HYBRID |
| Palette Trait | Spectral Hue Mapping | Monochrome, Rainbow, Shifted Neon, Inverted |
| Atmospherics | Coordinate Distortions | Earthquake, Thin Buildings, Mega-Moons, Dense Windows |
Unlike conventional generative art that relies on continuous trigonometric compositions or Perlin noise fields, Bit Dot Night uses low-level integer logic as its primary generative substrate.
The basic coordinate field is evaluated over
Raw bitwise outputs produce sharp scalar discontinuities. To create smooth, wave-like lighting while preserving binary structure, outputs pass through a continuous periodic brightness transform:
where
Quantitative analysis over 2D Fast Fourier Transforms (2D FFT) demonstrates that each discrete operator induces a statistically distinct visual and structural regime:
| Operator | Formula | Brightness Variance ( |
Low-Freq Energy ( |
Mid-Freq Energy ( |
High-Freq Energy ( |
Structural Coherence ( |
Visual Behavior |
|---|---|---|---|---|---|---|---|
| AND | X & Y |
0.02645 | 37.6% | 19.0% | 43.4% | 0.06571 | Dense blocks, high clustering |
| OR | Expanding modular forms | ||||||
| XOR | High-frequency window grids | ||||||
| ADD | Linear directional gradients | ||||||
| MULT | Sparse nonlinear scaling | ||||||
| HYBRID | Computed Moiré / chaotic symmetry |
-
Structural Coherence (
$C$ ): Quantifies localized pixel brightness shifts. Lower values denote smooth continuous spatial transitions (buildings/facades), while higher values reflect rapid local variation (scattered lit windows).
The platform uses a dual-layer, offscreen rendering architecture to maintain
No build tools or heavy framework configurations are required—just plain modern web technologies.
1. Clone the repository:
git clone [https://github.com/dkconnect/bit-city.git](https://github.com/dkconnect/bit-city.git)
cd bit-city
2. Serve the project: Use any local web server (e.g., Python's standard HTTP server or VS Code Live Server):
Python 3.x
python -m http.server 8000
3. Open in Browser: Navigate to http://localhost:8000.
.
├── index.html # DOM structure & asset dependencies
├── style.css # Layout, retro aesthetics & canvas styling
├── script.js # Core generative logic, PRNG, and ArtGenerator class
├── Bit Dot Night Rev - JULY.pdf # Full formal research paper
└── README.md # Project documentation
If you use Bit Dot Night or its operator taxonomy in your research, generative art, or computational media projects, please cite the paper:
@article{kumar2025bitdotnight,
title={Bit Dot Night: Bitwise Generative Systems for Emergent Architectural Visualization},
author={Kumar, Dibyanshu},
journal={Preprint / Technical Paper},
year={2025},
url={[https://bit-city.vercel.app/](https://bit-city.vercel.app/)}
}
Created by Dibyanshu Kumar



