def rasen2(sz:Int) {
setPenColor(color(256-sz,128,sz))
if(sz<250) {
repeat(4){
forward(sz) ; left(78)
}
rasen2(sz+4)
}
}
clear ; rasen2(10)
このコードの、左に折れる角度(ここでは78)を、少しずつ変化させていくと、
図もそれにつれて変化していく。いくつかの例を以下に示す。
| 78 | ![]() |
| 80 | ![]() |
| 82 | ![]() |
| 84 | ![]() |
| 87 | ![]() |
| 89 | ![]() |