元编程参考文档

纹理图案

11 个节点

本页内容 11

编篮纹

函数

Basket weave: square blocks of parallel pieces, alternating between across and down like a checkerboard.

签名
编篮纹 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    块数: 整数
    每块条数: 整数
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture BasketWeave(
    out Texture cellRandom,
    out Texture gapMask,
    int blocks = 4,
    int piecesPerBlock = 3,
    double gap = 0.1,
    double bevel = 0.2,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.1,
    double tilt = 0.1,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
块数整数4Blocks across.
每块条数整数3Parallel pieces in each block.
缝隙数字0.1The joint's width, as a share of a piece's width.
倒角数字0.2How far in the edge rounds, as a share of a piece's width.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.1How much lower some pieces sit.
倾斜数字0.1How much each piece leans.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

砖块

函数

Bricks in running bond: rows of bricks, every other row offset, with mortar between and bevelled edges.

签名
砖块 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    列数: 整数
    行数: 整数
    偏移: 数字
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Bricks(
    out Texture cellRandom,
    out Texture gapMask,
    int columns = 6,
    int rows = 16,
    double offset = 0.5,
    double gap = 0.12,
    double bevel = 0.2,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.15,
    double tilt = 0.2,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
列数整数6Bricks across.
行数整数16Rows of bricks down.
偏移数字0.5How far every other row is shifted, as a share of a brick: 0.5 is running bond, 0 stack bond.
缝隙数字0.12The mortar's width, as a share of a brick's height.
倒角数字0.2How far in the edge rounds, as a share of a brick's height.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.15How much lower some bricks sit, 0 to 1.
倾斜数字0.2How much each brick leans to one side, 0 to 1.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

棋盘格

函数

A checkerboard of alternating black and white squares.

签名
棋盘格(数量: 整数, 尺寸: 整数) -> Texture
Texture Checker(int count = 8, int size = 1024)

参数

名称类型默认值说明
数量整数8Squares across.
尺寸整数1024Width and height in pixels.

返回

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

人字纹

函数

Herringbone: rectangular pieces laid in alternating zig-zag stairs, as parquet and brick paving are. The count is rounded to the pattern's period so it tiles.

签名
人字纹 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    数量: 整数
    长度: 整数
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Herringbone(
    out Texture cellRandom,
    out Texture gapMask,
    int count = 16,
    int length = 3,
    double gap = 0.08,
    double bevel = 0.15,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.1,
    double tilt = 0.15,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
数量整数16Piece widths across the texture; rounded to a multiple of twice the length.
长度整数3How many widths long a piece is.
缝隙数字0.08The joint's width, as a share of a piece's width.
倒角数字0.15How far in the edge rounds, as a share of a piece's width.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.1How much lower some pieces sit.
倾斜数字0.15How much each piece leans.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

六边形

函数

Hexagonal tiles, pointy side up. Rows are made even so they tile; the hexagons are stretched slightly to fit a square.

签名
六边形 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    列数: 整数
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Hexagons(
    out Texture cellRandom,
    out Texture gapMask,
    int columns = 8,
    double gap = 0.06,
    double bevel = 0.12,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.1,
    double tilt = 0.1,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
列数整数8Hexagons across.
缝隙数字0.06The gap's width, as a share of a hexagon's width.
倒角数字0.12How far in the edge rounds, as a share of a hexagon's width.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.1How much lower some hexagons sit.
倾斜数字0.1How much each hexagon leans.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

木地板

函数

Floor planks: rows of boards of random lengths with staggered joints, as a timber floor is laid.

签名
木地板 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    行数: 整数
    每行木板数: 整数
    长度随机性: 数字
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Planks(
    out Texture cellRandom,
    out Texture gapMask,
    int rows = 8,
    int boardsPerRow = 2,
    double lengthRandomness = 0.6,
    double gap = 0.05,
    double bevel = 0.1,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.05,
    double tilt = 0.1,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
行数整数8Rows of boards down.
每行木板数整数2Boards in each row, on average.
长度随机性数字0.6How much board lengths vary, 0 to 1.
缝隙数字0.05The joint's width, as a share of a board's width.
倒角数字0.1How far in the edge rounds, as a share of a board's width.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.05How much lower some boards sit.
倾斜数字0.1How much each board leans.
随机种子整数0Which random lengths.
尺寸整数1024Width and height in pixels.

返回

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

鳞片

函数

Overlapping scales, each row lapping over the one above: fish, dragons, roof shingles cut round.

签名
鳞片 -> (结果: Texture, 单元随机值: Texture)
    列数: 整数
    行数: 整数
    圆润度: 数字
    随机种子: 整数
    尺寸: 整数
Texture Scales(
    out Texture cellRandom,
    int columns = 10,
    int rows = 14,
    double roundness = 0.6,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
列数整数10Scales across.
行数整数14Rows of scales down; made even so they tile.
圆润度数字0.6How domed each scale is, 0 (flat) to 1.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

石块

函数

Irregular stones, each a cell of a random pattern of points with a gap between: flagstones and crazy paving at low jitter-free counts, cobbles with a round bevel.

签名
石块 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    数量: 整数
    随机性: 数字
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Stones(
    out Texture cellRandom,
    out Texture gapMask,
    int count = 8,
    double randomness = 0.9,
    double gap = 0.06,
    double bevel = 0.3,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.2,
    double tilt = 0.25,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
数量整数8Stones across.
随机性数字0.9How irregular the stones are, 0 (a grid) to 1.
缝隙数字0.06The gap's width, as a share of a stone's size.
倒角数字0.3How far in the edge rounds, as a share of a stone's size.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.2How much lower some stones sit.
倾斜数字0.25How much each stone leans.
随机种子整数0Which random stones.
尺寸整数1024Width and height in pixels.

返回

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

条纹

函数

Parallel stripes, hard or soft: corrugation, pinstripes, ribbed rubber.

签名
条纹 -> Texture
    数量: 整数
    宽度: 数字
    柔和度: 数字
    纵向: 真否
    尺寸: 整数
Texture Stripes(
    int count = 16,
    double width = 0.5,
    double softness = 0.1,
    bool vertical = true,
    int size = 1024)

参数

名称类型默认值说明
数量整数16Stripes across the texture.
宽度数字0.5How much of each period is stripe, 0 to 1.
柔和度数字0.1How soft the stripe's edges are, 0 (hard) to 1 (a wave).
纵向真否TrueStripes running down rather than across.
尺寸整数1024Width and height in pixels.

返回

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

瓷砖

函数

Square or rectangular tiles in a grid, optionally offset row by row: floor and wall tiles, paving slabs.

签名
瓷砖 -> (结果: Texture, 单元随机值: Texture, 缝隙蒙版: Texture)
    列数: 整数
    行数: 整数
    偏移: 数字
    缝隙: 数字
    倒角: 数字
    截面: Bevel Profile
    高度变化: 数字
    倾斜: 数字
    随机种子: 整数
    尺寸: 整数
Texture Tiles(
    out Texture cellRandom,
    out Texture gapMask,
    int columns = 4,
    int rows = 4,
    double offset = 0,
    double gap = 0.04,
    double bevel = 0.06,
    BevelProfile profile = BevelProfile.Round,
    double heightVariation = 0.05,
    double tilt = 0.1,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
列数整数4Tiles across.
行数整数4Tiles down.
偏移数字0How far every other row is shifted, as a share of a tile.
缝隙数字0.04The grout's width, as a share of a tile's shorter side.
倒角数字0.06How far in the edge rounds, as a share of a tile's shorter side.
截面Bevel Profile圆The bevel's cross-section.
高度变化数字0.05How much lower some tiles sit, 0 to 1.
倾斜数字0.1How much each tile leans, 0 to 1.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

织物

函数

Woven cloth: threads running across and down, each passing over one and under the next. Plain weave at 1, twill's diagonals at 2 or more.

签名
织物 -> (结果: Texture, 经线蒙版: Texture)
    线数: 整数
    压线数: 整数
    线宽: 数字
    尺寸: 整数
Texture Weave(
    out Texture warpMask,
    int threads = 32,
    int over = 1,
    double threadWidth = 0.85,
    int size = 1024)

参数

名称类型默认值说明
线数整数32Threads across the texture.
压线数整数1How many threads each thread passes over before going under: 1 is plain weave, 2 or 3 twill.
线宽数字0.85How much of its lane a thread fills, 0 to 1.
尺寸整数1024Width and height in pixels.

返回

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