元編程參考文件

紋理散佈

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理散佈
所屬包
影像處理