0.1 soggy/cotton / docs / cot.5
COT(5) File Formats Manual COT(5)

cotthe cot programming language

cot is a small (both in size and features) interpreted programming language made to be simple, easily readable, approachable and to be used FOR cotton(1).

cot's development is being made side by side with cotton's development, as such, both are built with eachother in mind.

cotton's keywords are called "commands" , below is a reference list of every command in cot (as of cotton 0.2) and how to use it properly.

(text)
Prints text to the screen.
(seconds)
Waits for an x ammount of seconds.
Kills the ongoing cotton process.
(color)
Colors text (there are 7 options, which can be seen in cotton.h!! i'd list them here but blehhh).
(name) (value)
Assigns a value to a variable.
(var) (value)
Adds a value to a variable.
(var) (value)
Subtracts a value from a variable.
(var) (value)
Multiplies a variable by a value.
(var) (value)
Divides a variable by a value.
(x) (y) (color)
Draws a pixel at the specified coordinates (this will be probably be a bit adjusted in the future).
Clears whatever is currently on the screen.
(var)
Waits for user input and stores it in a variable.

NOTE: some of the commands above are subject to change given that cot(ton) has yet to reach it's first stable release - even then, any update to any command will be doccumented here and i will also do my best to not break the whole syntax every update ;w;

cotton(1), eiki(5)

July 2026 cotton 0.2