BSoD

From Esolang
Jump to: navigation, search
Prints "Hi !" in BSoD (Size * 10).

BSoD is an esoteric programming language created by User:BoutonIA on 23 June 2018. His name refers to the Blue Screen of Death on computers with the Windows operating system. It is part of graphic programming languages.

Commands

Here is the summary of each function :

Color RGB Function
BSoD Background Color V1 (0,0,170) Add 1 to value
BSoD Background Color V2 (0,120,170) Change the background or the text color to (value - 1) % 64 and set value to 0
BSoD Text Color (255,255,255) Prints the character value % 256 in ASCII and set value to 0
RSoD Background Color (170,0,0) Stop the program
Terminal Background Color (0,0,0) Go to the next line (all the following pixels in the same line are considered as comments)

Colors

The BSoD Background Color V2 allows you to change the color of the text or the color of the background.
If there is only one pixel of this color, it will change the color of the text.
If there are 2 in a row, it will change the color of the background.
It also means that you can not change the color of the text 2 times in a row.
The color is represented by a value between 0 and 63 calculated as : (value - 1) % 64.
That means you can not enable the color function for 0.
This value will be transformed into base 4 whose first character will represent the intensity of red * 85, the second will represent the intensity of green * 85 and the last will represent the intensity of blue * 85.
Example for the value 219 :
(219 - 1) % 64 = 26
26 in base 10 = 122 in base 4
1 * 85 = 85
2 * 85 = 170
2 * 85 = 170
Color = rgb(85,170,170)

Examples

Hello, World!

HelloWorldBSoD.png

Note: The program images have been multiplied by 10 for a better visual comfort but you will have to reduce them by 10 if you want the program to work

Interpreter

Code of a php interpreter (not fully tested)