Statement | Function | Syntax |
---|---|---|
println | Used to print something on the screen | println [string/number/variable] |
clear() | Used to clear the screen | clear() |
input() | Used to input a variable | input([string], [var]) |
if() | Used to do boolean operations | if([var] = [condition]) { Block of statement/s } |
else | Used in if in false blocks | if([var] = [condition]) { True else { False } } |
elif | Used in if in other blocks | if([var] = [condition]) { Block of statement/s elif { Block of Statement/s else { Block of statement/s } } } |
for | Used to loop a vertain block of statement/s a certain amount of times | for i = [startnum] to [endnum] { Block of statement/s } |
while | Used to loop a certain block of statement/s a uncertain amount of times | while [expression] { Block of statement/s } |
setScreen | Used to make the screen of a cetain width or height | setScreen([screenx], [screeny], [bit of color]) |
line | Used to create a line | line([x1], [y1])-([x2],[y2]), [color] |
ellipse | Used to create a circle | ellipse ([x], [y]), [radius], [color] |
funct | Used to create a function | funct [functname] { Block of statement/s } |
void | Used to create a empty function(subroutine) | void [voidname] { Block of statement/s } |
createVector | Used to create a vector | createVector [vectorname] |
declare | Used to declare something or an array | declare [varname][arraynum] AS [type] |