元編程參考文件

顏色漸層

20 個節點

本頁內容 20

預設熱力漸層

函數

Five-stop heat-map ramp on 0-1, running dark blue, blue, green, yellow, red.

簽名
預設熱力漸層() -> Color Ramp
ColorRamp DefaultHeatRamp()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

預設地形漸層

函數

Seven-stop terrain ramp on 0-1: deep water, shallow water, sand, grass, brown earth, grey rock and snow.

簽名
預設地形漸層() -> Color Ramp
ColorRamp DefaultTerrainRamp()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

自然冷色調

函數

Nine-stop ramp on 0-1 of muted natural tones, from near-black green through olive and brown to pale sand, with cooler greens in the shadows than ColorRamp.NaturalDirt.

簽名
自然冷色調() -> Color Ramp
ColorRamp NaturalCool()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

自然土色調

函數

Nine-stop ramp on 0-1 of earthy tones, from near-black through olive and brown to pale sand; a slightly warmer variant of ColorRamp.NaturalCool.

簽名
自然土色調() -> Color Ramp
ColorRamp NaturalDirt()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

顏色漸層

函數

Creates a ramp from stops given in any order; they are sorted by position.

過載 1/2

簽名
顏色漸層(色標: IEnumerable<Color Stop>) -> Color Ramp
ColorRamp ColorRamp(IEnumerable<ColorStop> stops)

參數

名稱型別預設值說明
色標IEnumerable<Color Stop>—The stops. At least one is required, positions must be finite, and no two may share a position.

返回

顏色漸層Color Ramp

過載 2/2

簽名
顏色漸層(色標: Color Stop 陣列) -> Color Ramp
ColorRamp ColorRamp(params ColorStop[] stops)

參數

名稱型別預設值說明
色標Color Stop 陣列—The stops. At least one is required, positions must be finite, and no two may share a position.

返回

顏色漸層Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

色標數

函數

Number of stops; always at least one.

簽名
色標數(Color Ramp: Color Ramp) -> 整數
int Count(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

區間終點

函數

Position of the last (highest) stop.

簽名
區間終點(Color Ramp: Color Ramp) -> 數字
double DomainEnd(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

區間長度

函數

Distance from the first stop to the last; zero for a single-stop ramp.

簽名
區間長度(Color Ramp: Color Ramp) -> 數字
double DomainLength(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

區間起點

函數

Position of the first (lowest) stop.

簽名
區間起點(Color Ramp: Color Ramp) -> 數字
double DomainStart(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

是否已歸一化

函數

True when the stops run exactly from 0 to 1.

簽名
是否已歸一化(Color Ramp: Color Ramp) -> 真否
bool IsNormalized(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

色標

函數

The stop at the given index, counting in ascending order of position.

簽名
色標(Color Ramp: Color Ramp, 索引: 整數) -> Color Stop
ColorStop Item(ColorRamp Color Ramp, int index)

參數

名稱型別預設值說明
Color RampColor Ramp—
索引整數—Zero-based index of the stop.

返回

結果Color Stop
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

色標

函數

The stops, sorted by ascending position.

簽名
色標(Color Ramp: Color Ramp) -> IReadOnlyList<Color Stop>
IReadOnlyList<ColorStop> Stops(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果IReadOnlyList<Color Stop>
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

取得列舉器

函數

Enumerates the stops in ascending order of position.

簽名
取得列舉器(Color Ramp: Color Ramp) -> IEnumerator<Color Stop>
IEnumerator<ColorStop> GetEnumerator(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果IEnumerator<Color Stop>
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

轉為文字

函數

Writes the ramp as text in the ColorRampTextStyle.ColorAtStop style, one stop per line, which ColorRamp.Parse reads back.

簽名
轉為文字(Color Ramp: Color Ramp) -> 文字
string ToString(ColorRamp Color Ramp)

參數

名稱型別預設值說明
Color RampColor Ramp—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

轉為漸層文字

函數

Convert color ramp to parsable text format.

簽名
轉為漸層文字 -> 文字
    Color Ramp: Color Ramp
    樣式: Color Ramp Text Style
string ToText(
    ColorRamp Color Ramp,
    ColorRamp.ColorRampTextStyle style = ColorRampTextStyle.ColorAtStop)

參數

名稱型別預設值說明
Color RampColor Ramp—
樣式Color Ramp Text Style色標處的顏色

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

建立預設水面顏色漸層

函數

Default water-like ramp for normal-shaded heightfield rendering.

簽名
建立預設水面顏色漸層() -> Color Ramp
ColorRamp CreateDefaultWaterSurfaceColorRamp()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

建立淺水水面顏色漸層

函數

Shallow water-like ramp for normal-shaded heightfield rendering.

簽名
建立淺水水面顏色漸層() -> Color Ramp
ColorRamp CreateShallowWaterSurfaceColorRamp()

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

預設高度層顏色漸層

函數

A reasonable stylized 2D-ish default:
deep ocean -> shallow -> beach -> green -> dry grass -> brown -> rock -> snow.
seaLevel shifts the water/land boundary.

簽名
預設高度層顏色漸層(海平面: 低精度數字) -> Color Ramp
ColorRamp DefaultHeightLevelColorRamps(float seaLevel)

參數

名稱型別預設值說明
海平面低精度數字—

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

解析顏色漸層

函數

Parses line-based color ramp text.
Supported formats:
#RRGGBB@0.25
0.25: #RRGGBB

簽名
解析顏色漸層(文字: 文字) -> Color Ramp
ColorRamp Parse(string text)

參數

名稱型別預設值說明
文字文字—

返回

結果Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理

嘗試解析顏色漸層

函數

Parses ramp text in the same formats as ColorRamp.Parse, returning false instead of throwing when the text is empty, malformed or describes an invalid ramp.

簽名
嘗試解析顏色漸層(文字: 文字) -> (結果: 真否, 漸層: Color Ramp)
bool TryParse(string text, out ColorRamp ramp)

參數

名稱型別預設值說明
文字文字—The text to parse.

返回

結果真否
漸層Color Ramp
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
顏色漸層
所屬包
影像處理