Skip to content

hanekit/SaiSwatchesBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaiSwatchesBuilder

English | 中文


A tool for generating PaintTool SAI's swatches files (*.saiswat) from hex text or image.

Usage

Download the colorboard.py, and create a python file *.py in the same directory, and write your code.

Here is a template in examples/example.py :

from colorboard import Colorboard

# Create empty swatch
colorboard = Colorboard()
# Add color without keywords
colorboard.add_color(1, '#FF0000')
# Add color with keywords
colorboard.add_color(index=2, color='#00FF00')
# Check colors
print(colorboard.colors)
# Save file
colorboard.save('example.saiswat')

Then just copy the generated swatch file *.saiswat to the swatch folder¹.

¹ : ...\Documents\SYSTEMAX Software Development\SAIv2\settings\swatch\

Examples

From math function

> Rainbow swatches:

see examples/rainbow.py

From PNG file

see examples/picture.py

> Bulb swatches:

Original file (12 × 12 px) :

Generated swatches:

> Blue swatches:

Original file (500 × 500 px) :

Generated swatches:

About

A tool for generating PaintTool SAI's swatches files (*.saiswat) from hex text or image. // SAI2 色板文件生成工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages