changed assignment operator from := to = and equals operator from = to ==

git-svn-id: svn://anubis/fart/trunk@362 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2010-10-07 20:28:21 +00:00
1 parent 654be9058d
commit 78705024e8
4 files changed
+22 -18

No files matched your search

+2 -2
View File
@@ -26,9 +26,9 @@ scene
}
}
for (local $x := -200; $x <= 200; $x := $x + 40)
for (local $x = -200; $x <= 200; $x = $x + 40)
{
for (local $y := 0; $y <= 4000; $y := $y + 40)
for (local $y = 0; $y <= 4000; $y = $y + 40)
{
sphere
{
+6 -6
View File
@@ -25,20 +25,20 @@ scene
}
}
local $m := 0
for (local $x := -100; $x <= 100; $x := $x + 40)
local $m = 0
for (local $x = -100; $x <= 100; $x = $x + 40)
{
for (local $y := -100; $y <= 100; $y := $y + 40)
for (local $y = -100; $y <= 100; $y = $y + 40)
{
sphere
{
radius 10
translate <$x, $y, 10>
if ($m % 3 = 0)
if ($m % 3 == 0)
{
material mat
}
elsif ($m % 3 = 1)
elsif ($m % 3 == 1)
{
material mat2
}
@@ -51,7 +51,7 @@ scene
}
}
}
$m := $m + 1
$m = $m + 1
}
}
}