Files
Panayiotis Lipiridis cb4627eea7 Excalidraw
2020-11-26 13:04:00 +02:00

25 lines
503 B
Python

import excalidraw
scene = excalidraw.Excalidraw()
size = 32
width = 16
for column in range(size):
for row in range(size):
red = row * 256 // size
green = column * 256 // size
blue = column * 256 // size
color = "#%02x%02x%02x" % (red, green, blue)
scene.add_rectangle(
row * size,
column * size,
size,
size,
backgroundColor=color,
fillStyle="solid",
)
scene.save_as("hola")