影像
10 個節點
本頁內容 10
新增常駐圖層
函數A layer always drawn, under the attributes: a body, a base.
新增常駐圖層(影像: Layered Image, 檔案: 文字) -> Layered Image
LayeredImage AddAlwaysLayer(LayeredImage image, string file)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 影像 | Layered Image | — | |
| 檔案 | 文字 | — |
返回
| 分層影像 | Layered Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
新增圖層屬性
函數An attribute and its layer, in a group of which one shows at a time (or several, if the group allows).
新增圖層屬性 -> Layered Image
影像: Layered Image
組: 文字
屬性: 文字
檔案: 文字
預設: 真否
多選: 真否
條件: ConditionLayeredImage AddLayerAttribute(
LayeredImage image,
string group,
string attribute,
string file,
bool isDefault = false,
bool multiple = false,
Condition when)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 影像 | Layered Image | — | The layered image. |
| 組 | 文字 | — | The group, such as face; made on first use. |
| 屬性 | 文字 | — | The attribute lines and shows name, such as smile. |
| 檔案 | 文字 | — | The layer's image. |
| 預設 | 真否 | False | Shown when no attribute of the group is asked for. |
| 多選 | 真否 | False | Let several attributes of the group show together. |
| 條件 | Condition | — | Shown only while this holds; empty always. |
返回
| 分層影像 | Layered Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
純色影像
函數A solid colour, filling the screen unless a size is given.
純色影像(顏色: 文字, 寬度: 整數, 高度: 整數) -> Image Source
ImageSource ColorImage(
string color,
int width = 0,
int height = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 顏色 | 文字 | — | |
| 寬度 | 整數 | 0 | |
| 高度 | 整數 | 0 |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
組合影像
函數Images drawn one over another on a canvas: a base and up to two more at offsets.
組合影像 -> Image Source
寬度: 整數
高度: 整數
第一個: Image Source
第二個: Image Source
第二個 X: 整數
第二個 Y: 整數
第三個: Image Source
第三個 X: 整數
第三個 Y: 整數ImageSource CompositeImage(
int width,
int height,
ImageSource first,
ImageSource second,
int secondX = 0,
int secondY = 0,
ImageSource third,
int thirdX = 0,
int thirdY = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 第一個 | Image Source | — | |
| 第二個 | Image Source | — | |
| 第二個 X | 整數 | 0 | |
| 第二個 Y | 整數 | 0 | |
| 第三個 | Image Source | — | |
| 第三個 X | 整數 | 0 | |
| 第三個 Y | 整數 | 0 |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
濾鏡影像
函數An image with filters: zoom, flips, tint, desaturation, brightness, blur and opacity.
濾鏡影像 -> Image Source
源: Image Source
縮放: 數字
水平翻轉: 真否
垂直翻轉: 真否
色調: 文字
飽和度: 數字
亮度: 數字
模糊: 數字
不透明度: 數字ImageSource FilteredImage(
ImageSource source,
double zoom = 1,
bool flipHorizontal = false,
bool flipVertical = false,
string tint = "",
double saturation = 1,
double brightness = 0,
double blur = 0,
double opacity = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Image Source | — | The image. |
| 縮放 | 數字 | 1 | Its scale. |
| 水平翻轉 | 真否 | False | Mirror it left to right. |
| 垂直翻轉 | 真否 | False | Mirror it top to bottom. |
| 色調 | 文字 | — | A colour to multiply it by, such as #ffd0d0; empty for none. |
| 飽和度 | 數字 | 1 | 1 keeps colour, 0 is grayscale. |
| 亮度 | 數字 | 0 | Added to each channel, -1 to 1. |
| 模糊 | 數字 | 0 | A blur radius in pixels. |
| 不透明度 | 數字 | 1 | 0 is invisible, 1 is solid. |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
邊框影像
函數A picture stretched as a nine-patch by borders of its own, in its pixels: its corners kept, its edges and middle stretched to the box it fills. For a style's background, as Ren'Py's Frame.
邊框影像 -> Image Source
源: Image Source
左側: 數字
頂部: 數字
右側: 數字
底部: 數字ImageSource FrameImage(
ImageSource source,
double left,
double top,
double right = 0,
double bottom = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | Image Source | — | The picture, such as an Image File. |
| 左側 | 數字 | — | The left border. |
| 頂部 | 數字 | — | The top border. |
| 右側 | 數字 | 0 | The right border; 0 takes the left. |
| 底部 | 數字 | 0 | The bottom border; 0 takes the top. |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
影像檔案
函數An image file among the game's files.
影像檔案(路徑: 文字) -> Image Source
ImageSource ImageFile(string path)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 路徑 | 文字 | — |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
影片影像
函數A video looping as an image, such as rain behind a window.
影片影像(路徑: 文字, 迴圈: 真否) -> Image Source
ImageSource MovieImage(string path, bool loop = true)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 路徑 | 文字 | — | |
| 迴圈 | 真否 | True |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
開始分層影像
函數A layered image with no layers yet.
開始分層影像(標籤: 文字) -> Layered Image
LayeredImage StartLayeredImage(string tag)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 標籤 | 文字 | — | The image tag shows and lines use, such as qinglan. |
返回
| 分層影像 | Layered Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說
條件切換影像
函數An image that is one picture while a condition holds and another otherwise, decided as it is drawn: a room by day and by night.
條件切換影像 -> Image Source
條件: Condition
則: Image Source
否則: Image SourceImageSource SwitchImage(
Condition when,
ImageSource then,
ImageSource otherwise)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 條件 | Condition | — | |
| 則 | Image Source | — | |
| 否則 | Image Source | — |
返回
| 源 | Image Source |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 影像
- 所屬包
- Novella 視覺小說