Z-Sharp/Slang/script.slg
sam-astro 9874d03b3f Added many built-in functions and variables, also allowed for displaying graphics.
Graphics are currently *very* slow, and that is due to my underlying code. I will need to spend the next week or so just optimizing.
2022-01-02 15:33:17 -05:00

27 lines
292 B
Plaintext

void Main(string input, int in)
{
print "PI is: " + PI
int x = 1
float k = 0
while x < 5
{
float s = Sin(x)
int k = Sigmoid(s)
print k
x += 1
}
CPP.Graphics.Init(64, 64, 4)
}
void Update(string x, string y)
{
SetPixel(x, y, 255, 0, 0)
y += 1
// print "updating"
}