Here it is DPT — Dot Programming Text
CFR — Coding Format Rules
Version 1.1 — Complete Specification
DPT is a programming language for controlling dots (pixels), drawing pictures, creating animations, and building interactive gameplay.
The current Castle.xyz project uses 3,500 white square dots on a black background.
Each dot has a unique ID and X/Y position. In Castle.xyz, positive Y moves down and negative Y moves up.
⸻
1. FRAMES
FRAME0[]
Creates a frame. The number after FRAME is the frame number. Put the frame code inside the brackets.
FRAME0[
PIXEL AT [0] [0] AND THE PIXEL ID <0>
PIXEL AT [1] [0] AND THE PIXEL ID <1>
]
FRAME1[
PIXEL AT [0] [-1] AND THE PIXEL ID <0>
PIXEL AT [1] [-1] AND THE PIXEL ID <1>
]
Frames may contain pixel positions, drawing instructions, and picture data.
2. FRAME DATA
USE FRAME PICTURE <>
Places a picture URL inside <> and requests that the picture be converted into a dithered image using dots.
More dots in an area represent darker