A pattern generated from circles:
import arlunio as ar
import numpy as np
import arlunio.image as image
import arlunio.math as math
import arlunio.mask as mask
import arlunio.shape as shape
@ar.definition
def Template(x: math.X, y: math.Y) -> mask.Mask:
c = shape.Circle(xc=0.4, yc=0.4, pt=0.02)
return c(x=np.abs(x), y=np.abs(y))
pattern = mask.Repeat(defn=Template(scale=1.))
img = image.fill(
pattern(width=1080, height=1080), background="#000", foreground="#ff0"
)