mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-13 09:02:10 +00:00
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.
27 lines
292 B
Plaintext
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"
|
|
} |