元編程參考文件

紋理圖案

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