L-system: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Oops again!)
Line 139: Line 139:
var TwoPi = Num.pi * 2
var TwoPi = Num.pi * 2


class SierpinskiSquareCurve {
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 = SierpinskiSquareCurve.new(400, 400, Color.blue, Color.yellow)</syntaxhighlight>
var Game = KochSnowflake.new(400, 400, Color.blue, Color.yellow)</syntaxhighlight>


{{out}}
{{out}}