元编程参考文档

纹理散布

4 个节点

本页内容 4

散布

函数

Copies of a shape scattered at random over the texture - not on a grid - each its own size, turn and brightness: pebbles on a path, leaves, spots of rust, scratches when the shape is a thin capsule.

签名
散布 -> Texture
    形状: Shape Kind
    数量: 整数
    尺度: 数字
    尺度随机: 数字
    拉伸: 数字
    旋转随机: 数字
    亮度随机: 数字
    边数: 整数
    随机种子: 整数
    尺寸: 整数
Texture Splatter(
    ShapeKind shape = ShapeKind.Disc,
    int count = 200,
    double scale = 0.04,
    double scaleRandom = 0.5,
    double stretch = 1,
    double rotationRandom = 1,
    double luminanceRandom = 0.3,
    int sides = 6,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
形状Shape Kind圆盘The shape each copy is.
数量整数200How many copies.
尺度数字0.04A copy's size, as a share of the texture's width.
尺度随机数字0.5How much the size varies, 0 to 1.
拉伸数字1How much longer than wide each copy is: 1 keeps the shape, 8 makes a scratch of a capsule.
旋转随机数字1How far each copy's turn varies, 0 to 1 (a full turn).
亮度随机数字0.3How much darker some copies are.
边数整数6For polygons and stars, the number of sides or points.
随机种子整数0Which random scatter.
尺寸整数1024Width and height in pixels.

返回

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

散布纹理

函数

Copies of a small texture scattered at random, as Splatter scatters shapes.

签名
散布纹理 -> Texture
    图案: Texture
    数量: 整数
    尺度: 数字
    尺度随机: 数字
    拉伸: 数字
    旋转随机: 数字
    亮度随机: 数字
    随机种子: 整数
    尺寸: 整数
Texture SplatterTexture(
    Texture pattern,
    int count = 100,
    double scale = 0.06,
    double scaleRandom = 0.5,
    double stretch = 1,
    double rotationRandom = 1,
    double luminanceRandom = 0.3,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
图案Texture—The texture each copy is, read as greyscale.
数量整数100How many copies.
尺度数字0.06A copy's size, as a share of the texture's width.
尺度随机数字0.5How much the size varies.
拉伸数字1How much longer than wide each copy is.
旋转随机数字1How far each copy's turn varies.
亮度随机数字0.3How much darker some copies are.
随机种子整数0Which random scatter.
尺寸整数1024Width and height in pixels.

返回

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

平铺生成器

函数

A shape repeated on a grid, each copy varied at random in size, turn, position and brightness, and some left out: the general tool behind studs, tiles of pebbles, rows of rivets and diamond plate.

签名
平铺生成器 -> (结果: Texture, 单元随机值: Texture)
    形状: Shape Kind
    列数: 整数
    行数: 整数
    尺度: 数字
    尺度随机: 数字
    旋转: 数字
    旋转随机: 数字
    位置随机: 数字
    亮度随机: 数字
    剔除概率: 数字
    行偏移: 数字
    边数: 整数
    随机种子: 整数
    尺寸: 整数
Texture TileGenerator(
    out Texture tileRandom,
    ShapeKind shape = ShapeKind.Dome,
    int columns = 8,
    int rows = 8,
    double scale = 0.8,
    double scaleRandom = 0,
    double rotation = 0,
    double rotationRandom = 0,
    double positionRandom = 0,
    double luminanceRandom = 0,
    double dropChance = 0,
    double rowOffset = 0,
    int sides = 6,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
形状Shape Kind穹顶The shape each copy is.
列数整数8Copies across.
行数整数8Copies down.
尺度数字0.8Each copy's size within its cell, 1 filling it.
尺度随机数字0How much the size varies, 0 to 1.
旋转数字0Turns every copy, in degrees.
旋转随机数字0How far each copy's turn varies, 0 to 1 (a full turn).
位置随机数字0How far each copy strays from its cell's centre, as a share of a cell.
亮度随机数字0How much darker some copies are, 0 to 1.
剔除概率数字0The chance each copy is left out, 0 to 1.
行偏移数字0How far every other row is shifted, as a share of a cell.
边数整数6For polygons and stars, the number of sides or points.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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

平铺采样器

函数

A small texture - a pebble, a leaf, a bolt head - placed on a grid like the tile generator's copies, each varied.

签名
平铺采样器 -> (结果: Texture, 单元随机值: Texture)
    图案: Texture
    列数: 整数
    行数: 整数
    尺度: 数字
    尺度随机: 数字
    旋转: 数字
    旋转随机: 数字
    位置随机: 数字
    亮度随机: 数字
    剔除概率: 数字
    行偏移: 数字
    随机种子: 整数
    尺寸: 整数
Texture TileSampler(
    out Texture tileRandom,
    Texture pattern,
    int columns = 8,
    int rows = 8,
    double scale = 0.8,
    double scaleRandom = 0,
    double rotation = 0,
    double rotationRandom = 0,
    double positionRandom = 0,
    double luminanceRandom = 0,
    double dropChance = 0,
    double rowOffset = 0,
    int seed = 0,
    int size = 1024)

参数

名称类型默认值说明
图案Texture—The texture each copy is; its whole area fills a copy, and it is read as greyscale.
列数整数8Copies across.
行数整数8Copies down.
尺度数字0.8Each copy's size within its cell, 1 filling it.
尺度随机数字0How much the size varies.
旋转数字0Turns every copy, in degrees.
旋转随机数字0How far each copy's turn varies.
位置随机数字0How far each copy strays, as a share of a cell.
亮度随机数字0How much darker some copies are.
剔除概率数字0The chance each copy is left out.
行偏移数字0How far every other row is shifted.
随机种子整数0Which random variation.
尺寸整数1024Width and height in pixels.

返回

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