Loading docs/source/api_doc/resource/background_full.py 0 → 100644 +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), ) imgutils/resource/__init__.py +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 * imgutils/resource/background.py +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 Loading Loading
docs/source/api_doc/resource/background_full.py 0 → 100644 +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), )
imgutils/resource/__init__.py +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 *
imgutils/resource/background.py +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 Loading