元编程参考文档

纹理形状

1 个节点

本页内容 1

形状

函数

A shape drawn in every cell of a grid: filled shapes (square, disc, polygon, star, ring) are white inside with a smooth edge; rounded ones (dome, bell, pyramid, cone) rise from 0 at their edge to 1 at their centre.

签名
形状 -> Texture
    种类: Shape Kind
    平铺次数: 整数
    尺度: 数字
    边数: 整数
    旋转: 数字
    尺寸: 整数
Texture Shape(
    ShapeKind kind = ShapeKind.Disc,
    int tiles = 1,
    double scale = 0.9,
    int sides = 6,
    double rotation = 0,
    int size = 1024)

参数

名称类型默认值说明
种类Shape Kind圆盘Which shape.
平铺次数整数1How many times it repeats across and down.
尺度数字0.9Its size within its cell, 1 filling it.
边数整数6For a polygon or a star, how many sides or points.
旋转数字0Turns it, in degrees.
尺寸整数1024Width and height in pixels.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理形状
所属包
图像处理