Palette

From Esolang
Jump to navigation Jump to search

Palette is an esoteric programming language created by User:ShanePaton. Palette uses operations based on painting and palettes.

Instructions

Command Description
# Creates a comment that gets ignored by the interpreter
BOTTLE Modifies one of the 10 paint bottles
PAINT Prints a string of a bottle
SPLATTERPAINT Prints a random set of ASCII charecters
BLEND Adds values together and stores them in a bottle
SUBTRACT Subtracts values and stores them in a bottle
REDRAW Creates a loop that uses a number for the amount of itterations
INPUT Takes and stores input from the user into the inputStorage
SHOULD Checks if a value or input is equal to the number 1
SHOULD NOT Checks if a value or input is not equal to the number 1
WASH Ends the program and stops reading the script

Examples

Hello World

PAINT Hello World

WASH

OUTPUT: Hello World

Splatter Paint

SPLATTERPAINT 100

WASH

This would print 100 random ASCII Charecters

Variables

BOTTLE 1 = text Go checkout Length!

PAINT USING BOTTLE 1

WASH

OUTPUT: Go checkout Length!

Math

BLEND 47 2 1 1

SUBTRACT 53 2 1 2

PAINT USING BOTTLE 1

PAINT USING BOTTLE 2

WASH
OUTPUT: 
50
50

Truth-Machine

INPUT

SHOULD EQUALINPUT
SHOULDREDRAW 5
EQUALPAINT 1

SHOULD NOT EQUALINPUT
EQUALPAINT 0

WASH
OUTPUT:
>0
0

>1
1
1
1
1
1

Aperture Science ASCII

PAINT              .,-:;//;:=,
PAINT          . :H@@@MM@M#H/.,+%;,
PAINT       ,/X+ +M@@M@MM%=,-%HMMM@X/,
PAINT     -+@MM; $M@@MH+-,;XMMMM@MMMM@+-
PAINT    ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
PAINT  ,%MM@@MH ,@%=             .---=-=:=,.
PAINT  =@#@@@MX.,                -%HX$$%%%:;
PAINT =-./@M@M$                   .;@MMMM@MM:
PAINT X@/ -$MM/                    . +MM@@@M$
PAINT,@M@H: :@:                    . =X#@@@@-
PAINT,@@@MMX, .                    /H- ;@M@M=
PAINT.H@@@@M@+,                    %MM+..%#$.
PAINT /MMMM@MMH/.                  XM@MH; =;
PAINT  /%+%$XHH@$=              , .H@@@@MX,
PAINT   .=--------.           -%H.,@@@@@MX,
PAINT   .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
PAINT     =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
PAINT       =%@M@M#@$-.=$@MM@@@M; %M%=
PAINT         ,:+$+-,/H#MMMMMMM@= =,
PAINT              =++%%%%+/:-.
WASH
OUTPUT:       .,-:;//;:=,
          . :H@@@MM@M#H/.,+%;,
       ,/X+ +M@@M@MM%=,-%HMMM@X/,
     -+@MM; $M@@MH+-,;XMMMM@MMMM@+-
    ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
  ,%MM@@MH ,@%=             .---=-=:=,.
  =@#@@@MX.,                -%HX$$%%%:;
 =-./@M@M$                   .;@MMMM@MM:
 X@/ -$MM/                    . +MM@@@M$
,@M@H: :@:                    . =X#@@@@-
,@@@MMX, .                    /H- ;@M@M=
.H@@@@M@+,                    %MM+..%#$.
 /MMMM@MMH/.                  XM@MH; =;
  /%+%$XHH@$=              , .H@@@@MX,
   .=--------.           -%H.,@@@@@MX,
   .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
     =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
       =%@M@M#@$-.=$@MM@@@M; %M%=
         ,:+$+-,/H#MMMMMMM@= =,
              =++%%%%+/:-.

"You can't rush art" - That art guy from Toy Story 2