..
import arlunio as ar
import arlunio.image as image
import arlunio.math as math
import arlunio.shape as shape
@ar.definition
def SquareDemo(x: math.X, y: math.Y):
img = None
squares = [
(shape.Square(pt=0.01), x, y),
(shape.Square(pt=0.01), x + y, x - y),
(shape.Square(size=0.39, pt=0.01), x, y),
(shape.Square(size=0.39, pt=0.01), x + y, x - y),
(shape.Square(size=0.2), x, y),
]
bg = "white"
for square, sx, sy in squares:
img = image.fill(square(x=sx, y=sy), image=img, background=bg)
bg = None
return img
square = SquareDemo()
img = square(width=1920, height=1080)