Skip to content

Instantly share code, notes, and snippets.

View agitpropyookay's full-sized avatar

agitpropyookay

  • Reading, England
  • 20:49 (UTC +01:00)
  • Joined Sep 27, 2025
View GitHub Profile
@agitpropyookay
agitpropyookay / bin2sextant.c
Created October 9, 2025 13:30
snippet converting `bin' to block sextants, block elements, spaces.
// 0 1 2 3 4 5 6
wchar_t *s = L" 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓▌🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧▐🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻█";
// ^ ^ ^ ^
for (int r = 0; r < 6; r += 3)
{
for (int c = 0; c < 100; c += 2)
{
int bits = bin[r ][c] << 0 | bin[r ][c+1] << 1
| bin[r+1][c] << 2 | bin[r+1][c+1] << 3
| bin[r+2][c] << 4 | bin[r+2][c+1] << 5;