Color Scheme

From Esolang
Jump to navigation Jump to search

Color scheme is a color and stack based language built up on a grid of many cells. Each cell can be divided into more than one color. Different series of colors mean and effect the program in a different way. For example O-LB(Orange-Light Blue) adds 0 top the top of the stack.

Examples

Hello World!

Example of a Hello World! program.

This is and example of a Hello World! program that prints out 'Hello World!'. A link the preview it in the editor is here.

Truth Machine

Example of a Truth Machine.

This is an example of a Truth-machine program that written in color scheme. If you put 0 as the input it will just say '0', if you put 1 as the input it will forever say '1'. A link the preview it in the editor is here.

Cat

Example of a cat program.

This is an example of a Cat which outputs the input. A link to preview it in the editor is here.

Fibonacci Sequence

Example of a fibonacci sequence.

This is an example of a Fibonacci Sequence in color scheme. A link to preview it in the editor is here.

Factorial

Example of a factorial program.

This is an example of a factorial program written in color scheme. A link the preview it in the editor is here.

Cells

Control

Control
Cell Action
CsB.png
Stop.
CsW.png
Next line.
CsG.png
Continue.

Input & Output

Input & Output
Cell Action
AW.png
Output top stack item as a number. (Removes top stack item)
Csab.png
Output top stack item as a character. (Removes top stack item) (\n:0, SPACE:1, a-z:2-27, A-Z:28-53)
CsAG.png
Output top stack item following ASCII value. (Removes top stack item)
CsAOR.png
Clear the output.
CsAL.png
Ask for input then add it to the top of the stack.

Stack Manipulation

Stack Manipulation
Cell Action
CsOL.png
or
CsL.png
Increment top stack item.
CsOR.png
or
CsR.png
Decrement top stack item.
CsOW.png
Reset to default stack.
CsOB.png
Clear the stack.
CsOP.png
Reverse the stack.

... More information on site.