Commit 88993178 authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): add images

parent 7d1b655f
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
import random

from imgutils.resource import list_bg_image_files, get_bg_image
from plot import image_plot

if __name__ == '__main__':
    filenames = random.sample(list_bg_image_files(), 9)

    image_plot(
        *(
            (get_bg_image(filename), filename)
            for filename in filenames
        ),
        columns=3,
        figsize=(14, 12),
    )
+4 −0
Original line number Diff line number Diff line
"""
Overview:
    Quickly get some basic resources. E.g. high quality background images.
"""
from .background import *
+4 −0
Original line number Diff line number Diff line
"""
Overview:
    Get background images.
"""
import os.path
from functools import lru_cache
from typing import Optional, List