diff --git a/main.py b/main.py index 8ae7aa2..fd484d0 100644 --- a/main.py +++ b/main.py @@ -74,7 +74,7 @@ def make_wallpaper( fileformat: str = "svg", orientation: str | None = "landscape", local: bool = False, - marker: str | None = ".", + markers: str | None = ".", ): if fileformat not in MEDIA_TYPES: return @@ -96,7 +96,7 @@ def make_wallpaper( return else: x, y = (1920, 1080) - speckles_per_colour = int(x / 128 * y / 128 * density) + speckles_per_colour = int(x / 128 * y / 128 * density / len(markers)) fig, ax = plt.subplots(figsize=(x / 120, y / 120), facecolor=background) ax.set_facecolor(background) @@ -105,8 +105,9 @@ def make_wallpaper( ax.set_yticks([]) ax.margins(0, 0) - for color, size in itertools.product( + for color, marker, size in itertools.product( speckle_colours, + markers, np.logspace(0, size, 10, base=np.exp(2)), ): ax.scatter( @@ -114,7 +115,7 @@ def make_wallpaper( [random.random() * y / 8 for _ in range(speckles_per_colour)], c=color, s=size, - marker=random.choice(marker), + marker=marker, ) fig.tight_layout()