English | 中文
A tool for generating PaintTool SAI's swatches files (*.saiswat) from hex text or image.
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\
see examples/rainbow.py
see examples/picture.py
Original file (12 × 12 px) :
Generated swatches:
Original file (500 × 500 px) :
Generated swatches:




