Skip to content

Commit 08b328e

Browse files
Merge pull request #65 from HardyNLee/adjustment-filter
Add toturial of color adjustment
2 parents 3b98cf5 + e73e5b5 commit 08b328e

6 files changed

Lines changed: 24 additions & 3 deletions

File tree

src/en/webgal-script/animation.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ The following table explains each property:
8888
| position | Position offset |
8989
| rotation | Rotation angle, in radians |
9090
| blur | Gaussian blur radius |
91+
| brightness | Amount of brightness |
92+
| contrast | Amount of contrast |
93+
| saturation | Amount of saturation |
94+
| gamma | Amount of gamma |
95+
| colorRed | Amount of red color, range 0-255 |
96+
| colorGreen | Amount of green color, range 0-255 |
97+
| colorBlue | Amount of blue color, range 0-255 |
9198
| duration | Duration of this time slice, in milliseconds (ms) |
9299
| oldFilm | Old film effect, 0 to disable, 1 to enable |
93100
| dotFilm | Dot film effect, 0 to disable, 1 to enable |

src/en/webgal-script/bg-and-figure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For a description of the effect fields, please refer to [Animation](animation.md
9393
You can set some transform and filter effects for the figure when setting the figure. Here is an example:
9494

9595
```
96-
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
96+
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"brightness":1,"contrast":1,"saturation":1,"gamma":1,"colorRed":255,"colorGreen":255,"colorBlue":255,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
9797
```
9898

9999
## Set Transform Effects for Existing Figures

src/ja/webgal-script/animation.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ setAnimation:enter-from-bottom -target=fig-center -next;
8888
| position | 位置オフセット |
8989
| rotation | 回転角度、単位はラジアン |
9090
| blur | ガウスぼかしの半径 |
91+
| brightness | 輝度 |
92+
| contrast | コントラスト比 |
93+
| saturation | 彩度 |
94+
| gamma | ガンマ |
95+
| colorRed | 赤の量, 範囲は 0-255 |
96+
| colorGreen | 緑の量, 範囲は 0-255 |
97+
| colorBlue | 青の量, 範囲は 0-255 |
9198
| duration | このタイムスライスの持続時間、単位はミリ秒 (ms) |
9299
| oldFilm | オールドフィルム効果、0 はオフ、1 はオン |
93100
| dotFilm | ドット状のフィルム効果、0 はオフ、1 はオン |

src/ja/webgal-script/bg-and-figure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ unlockCg:xgmain.jpeg -name=星光咖啡馆与死神之蝶 -series=1;
9393
立ち絵を設定するときに、立ち絵にいくつかの変換とフィルターエフェクトを設定できます。以下に例を示します。
9494

9595
```
96-
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
96+
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"brightness":1,"contrast":1,"saturation":1,"gamma":1,"colorRed":255,"colorGreen":255,"colorBlue":255,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
9797
```
9898

9999
## 既存の立ち絵に変換エフェクトを設定する

src/webgal-script/animation.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ setAnimation:enter-from-bottom -target=fig-center -next;
8888
| position | 位置偏移 |
8989
| rotation | 旋转角度,单位为弧度 |
9090
| blur | 高斯模糊半径 |
91+
| brightness | 调节亮度 |
92+
| contrast | 调节对比度 |
93+
| saturation | 调节饱和度 |
94+
| gamma | 调节伽马值 |
95+
| colorRed | 颜色分量:红色, 范围0-255 |
96+
| colorGreen | 颜色分量:绿色, 范围0-255 |
97+
| colorBlue | 颜色分量:蓝色, 范围0-255 |
9198
| duration | 这个时间片的持续时间,单位为毫秒(ms) |
9299
| oldFilm | 老电影效果,0代表关闭,1代表开启 |
93100
| dotFilm | 点状电影效果,0代表关闭,1代表开启 |

src/webgal-script/bg-and-figure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ unlockCg:xgmain.jpeg -name=星光咖啡馆与死神之蝶 -series=1;
9393
你可以在设置立绘的时候就为立绘设置一些变换和滤镜效果,以下是一个示例:
9494

9595
```
96-
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
96+
changeFigure:stand.png -transform={"alpha":1,"position":{"x":0,"y":500},"scale":{"x":1,"y":1},"rotation":0,"blur":0,"brightness":1,"contrast":1,"saturation":1,"gamma":1,"colorRed":255,"colorGreen":255,"colorBlue":255,"oldFilm":0,"dotFilm":0,"reflectionFilm":0,"glitchFilm":0,"rgbFilm":0,"godrayFilm":0} -next;
9797
```
9898

9999
## 为已有的立绘设置变换效果

0 commit comments

Comments
 (0)