L-system: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Oops!.) |
(→{{header|Wren}}: Oops again!) |
||
Line 139: | Line 139: | ||
var TwoPi = Num.pi * 2 |
var TwoPi = Num.pi * 2 |
||
class |
class KochSnowflake { |
||
construct new(width, height, back, fore) { |
construct new(width, height, back, fore) { |
||
Window.title = "Koch Snowflake" |
Window.title = "Koch Snowflake" |
||
Line 187: | Line 187: | ||
} |
} |
||
var Game = |
var Game = KochSnowflake.new(400, 400, Color.blue, Color.yellow)</syntaxhighlight> |
||
{{out}} |
{{out}} |