Meet Piet, the Programming Language That Looks Like Abstract Art
Coding with Colors If you're tired of curly braces, semicolons, syntax errors, and dealing with tabs vs. spaces, how about replacing all text with color ? Welcome to the mesmerizing world of Piet ! Named after the famous abstract painter Piet Mondrian, Piet is an esoteric programming language where the source code is literally a bitmap image. That's right—there is no text. Your programs look exactly like abstract modern art, and compilers interpret the transitions of color from pixel to pixel to execute complex mathematical logic. How Does It Even Work? In a Piet program, data is stored in memory using a stack. A virtual "pointer" moves across the image from block to block. The compiler executes operations based on the change in color (specifically the change in hue and lightness) from the previous block to the current block. A script is composed of blocks of pixels called codels . It loops through 20 distinct colors (18 standard colors + black and w...