← 返回函数库

repeat

Keyword 关键字 已实现

说明

沿指定轴重复执行操作。

语法

repeat(axis { ... })

示例

repeat axis { ... }

🎨 3D 预览 — 重复

@StartRule
Lot --> primitiveCube(1, 1, 1)
        repeat(6)
        t(1.2, 0, 0)
        primitiveCube(1, 1, 1)
        color(rand(1), rand(1), rand(1))