,
v.maxDepth.value,
v.color.value)
}
}
class FractalView : View("分形图动画演示...Yellow(Color.YELLOW);
companion object {
val all by lazy { values().toList() }
}
}
//分形形状...+ cx) / 2
val ac_centery = (y + cy) / 2
delay(delay0)
// 左下角三角形...drawFractal(g, x, y, w / 2, h, depth + 1, maxDepth, color)
delay(delay0)
// 上三角形...(g, ac_centerx, ac_centery, w / 2, h, depth + 1, maxDepth, color)
delay(delay0)
// 右下角三角形