Skip to content

Instantly share code, notes, and snippets.

@frfs
Last active June 23, 2019 16:51
Show Gist options
  • Save frfs/cec766d62e2fcaedcf7381231de2c6a5 to your computer and use it in GitHub Desktop.
Save frfs/cec766d62e2fcaedcf7381231de2c6a5 to your computer and use it in GitHub Desktop.
絵文字でドット絵用の色絵文字の生成
from PIL import Image
interval = 0x33
for r in range(0, 0x100, interval):
for g in range(0, 0x100, interval):
for b in range(0, 0x100, interval):
image = Image.new('RGB', (1, 1), (r, g, b))
image.save(f'output/zz_{r:0=2x}{g:0=2x}{b:0=2x}.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment