A JavaScript-based IDE and Interpreter for Piet. See it in action here!
Piet is an esoteric programming language, which is based on the geometric artist Piet Mondriaan. The language specifies actions based on the transitions of colors. For a detailed explanation, please visit the official website
- Different Codel Sizes
- Shortcuts
- Color Filter
- Improved Layout
- IDE
- Interpreter
- Real-time runtime display (active codels, current stack, CC, DP)
- Self-Correcting Color List
- Step Debugging
- Block Size Display
- Fill Option
- Import from Image
- Export to Image
- Grid Scaling instead of Scrolling
- Different Codel Sizes
- Improved Layout
- Compiler??
- Shortcuts (Ex: 'x' for 'push')
- Color filter (only allow typical 20 Piet colors)
Note: This is my first ever legitimate attempt at developing in JavaScript. Some code has been taken from other sources, especially in the beginning stages of development. I will attribute each source I have used below.
Second Note: According to my tests, the Interpreter is correct in its traversal and behavior. If it is not, please let me know.
Third Note: Would not recommend having a grid much larger than 50x50 for performance.
- JavaScript Array-Shifting code from ayane_m on StackOverflow.
- Basic Pixel Art HTML/CSS/JS from harsh on Code With Random.
- Breadth-First Search from ramandeep8423 on Geeks For Geeks.
- Array.Includes(Array) from Rahman Qadirzade on StackOverflow.
- Matrix Addition from ForgetCode.
- RGB to Array from 30SecondsOfCode.