https://github.com/Gollum999/perlin-wang Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Gollum999 / perlin-wang Public * Notifications You must be signed in to change notification settings * Fork 0 * Star 3 Perlin noise Wang tile generator - Seamless, non-periodically tileable noise textures 3 stars 0 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights Gollum999/perlin-wang This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 4 Commits images images .gitignore .gitignore README.md README.md perlin_lattice.py perlin_lattice.py tile_generator.py tile_generator.py typedefs.py typedefs.py View all files Repository files navigation * README Perlin Noise Wang Tile Generator This script combines the concepts of Perlin Noise and Wang Tiles to generate a set of non-periodically tileable noise images. Based on the work of David Maung, Michael Cohen, Jonathan Shade, Stefan Hiller, and Oliver Deussen. Examples Tileable Perlin noise With colorized edges Usage usage: tile_generator.py [-h] [--output OUTPUT] [--output-name OUTPUT_NAME] [--output-format OUTPUT_FORMAT] [--seed SEED] --tile-size TILE_SIZE [--frequency FREQUENCY] [--period PERIOD] [--amplitude AMPLITUDE] [--octaves OCTAVES] [--x-colors X_COLORS] [--y-colors Y_COLORS] [--n-choices N_CHOICES] [--colorize-edges] options: -h, --help show this help message and exit --output OUTPUT Path to output directory --output-name OUTPUT_NAME Name to prepend to all output files. Default = tile --output-format OUTPUT_FORMAT Output file type. Default = png --seed SEED Seed for random number generation. Default = random seed Perlin noise settings: --tile-size TILE_SIZE Size of tiles (length of one side in pixels, must be a power of 2) --frequency FREQUENCY Frequency of Perlin lattice points in pixels, overrides --period. Default = None --period PERIOD Number of pixels between Perlin lattice points; inverse of frequency. Default = 8 --amplitude AMPLITUDE Delta between min and max value. Default = 1.0 --octaves OCTAVES Number of noise waves to combine; a higher value results in more detail. Default = 1 Wang tile settings: Total number of tiles will be x_colors * y_colors * n_choices. --x-colors X_COLORS Number of colors to use when tiling left-right. Default = 2 --y-colors Y_COLORS Number of colors to use when tiling up-down. Default = 2 --n-choices N_CHOICES Number of alternative tile options for each unique pair of tile up-left colors. Default = 2 --colorize-edges Colorize edges in output for easier visual matching. Desaturate to restore original images. Dependencies * more_itertools * numpy * Pillow (PIL) * vectormath About Perlin noise Wang tile generator - Seamless, non-periodically tileable noise textures Resources Readme Activity Stars 3 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.