1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Transparent BG

This commit is contained in:
Meow J
2016-08-08 23:04:53 +08:00
parent 54a95c1826
commit aff1a2cfb3
17 changed files with 58 additions and 0 deletions

21
tools/README.md Normal file
View File

@@ -0,0 +1,21 @@
# 工具
本目录中包含一些工具供翻译或校对时使用。
## ClearBG.py
很简陋的一个颜色替换工具,当原图片有背景色的时候请使用这个将背景颜色清除。
运行需要Pillow如果没有安装的话请输入以下指令安装
```bash
$ pip install Pillow
```
输入颜色的时候请在每个值中间加一个空格。
常用的背景颜色有:
- 238 238 238 255
- 241 241 241 255
输入的颜色最终会被替换为透明,输出文件为'noBG.png'。