Display thing

From Esolang
Jump to navigation Jump to search

Display thing is an esolang by User:Hammy.

Memory

The memory is a tape, like bf. But it's two-dimensional. It also has a stack, but only 1 command uses it. It also has a "container", which is like a stack but can only have 3 items.

Output

Output can only be done with graphical output.

Commands

Command Meaning (mode off) Meaning (mode on)
?
Toggle the mode bit.
>
Go right. Go up.
<
Go left. Go down.
=
Increment. Decrement.
$
Push the index of this command in the code to the stack. Pops a value from the stack, and goes to the command with the index of that value if the current cell isn't 0.
.
Adds the current cell value to the container. If the container is full, output a pixel with the container's values as the red, green and blue, then clear the container. Take input as a character and set the current cell to it.