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:
1 parent
654be9058d
commit
78705024e8
4 files changed
+22
-18
No files matched your search
@@ -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
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user