Skip to content

Instantly share code, notes, and snippets.

View PeterHindes's full-sized avatar
💭
breaking nextjs

Peter Hindes PeterHindes

💭
breaking nextjs
View GitHub Profile
@PeterHindes
PeterHindes / README.md
Created March 14, 2025 19:30
Squares In Binary Visual Representation

This python file shows the values of the squares of n numbers in binary visualy, which reveals an intresting pattern.
It uses green (0, 255, 0) for '1' and red (255, 0, 0) for '0' and white for spaces that are unused because the length of the binary number is short. output

I would reccomend downloading the file and opening it with a program that lets you view the individual pixels. Below is a screenshot of a slice of the pattern.

image