Interval Hue

From Esolang
Jump to navigation Jump to search
Interval Hue
Designed by User:Sawyer.go0923
Appeared in 2025
Memory system None
Computational class Turing-complete
Reference implementation Unimplemented

Interval Hue is a Turing complete language so there are cells. The cells can go up to 16777215 (or FFFFFF) then 16777216 (or 1000000) will be back to 0.

Commands

Command Effect
! Turns the current cell's color to the rgb color of the cell's value [so
16777215 is rgb(255,255,255) while 0 is rgb(0,0,0).]
# Increase the current cell by one [Add one to cell so if the
cell is 5, # will turn it to 6]
$ Decrease the current cell by one [Add one to the cell so if the
cell is 9, $ will turn it to 8]
?...? If the current cell is not equal to 1 or 16777214 then it will run the
... 's until the current cell is equal to 1 or 16777214
(when it goes back to the first ?)
@...@ If the current cell is equal to 1 or 16777214 then it will run the code
... 's until the current cell is not equal to 1 or 16777214
(when it goes back to the first @)
; If the current cell is greater than 8388608, then it will set the current cell to 0,
else if it is less than 8388608, it will turn the current cell to 8388608,
else it turns the current cell to 16777215
: if the current cell is less than 8388608, then it will set the current cell to 0,
else if it is greater than 8388608, it will turn the current cell to 8388608,
else it turns the current cell to 16777215
% Divides the current cell by 3 and if the remainder is 0, then sets the current cell
to 0 else if the remainder is 1, then sets the current cell to 8388608 else if the
remainder is 2 then sets the current cell to 16777215
< Moves the pointer left
> Moves the pointer right
d If the current cell is not equal to 1 or 16777214 then it moves the pointer left
b If the current cell is not equal to 1 or 16777214 then it moves the pointer right
[...] if the current cell is 0 then it will run the ...
_ Pauses the program for 0.5 seconds and plays a beep
& Turns the current cell to 0 and prints the UTF-8 character that has the same
value as the current cell (cells over 1114111 will just print 􏿿)

Example program 1

[;;$$$$$$#!>_]

this program will turn the next cell's color to #FFFFFA every 0.5 seconds

Example program 2

!?;!_;!_&!>?

this program will cycle the current cell's color by black -> grey -> white and move to the next cell and repeat that (also printing 􏿿 every time goes to new cell)

Notes

  • add note


This article is not detailed enough and needs to be expanded. Please help us by adding some more information.