Skip to main content

No project description provided

Project description

About This

A package created for the purpose of the generation of random maps/images. Utilizes numpys for image storage and openCV for visualization. Built around a Canvas class that adds functionality for "drawing" to a numpy.

Included modules

Includes 4 modules: drawHelper, dataGen, pathfinding, and pynputHelper. drawHelper is the main module containing the Canvas class with contain important drawing functions, saving functions, and visualization. dataGen allows for the random generation of canvases utilizing drawHelper. pathfinding implements an a* algorithm for finding an optimal path between a source point and a destination point. pynputHelper includes a few helper functions that allow for an abstracted usage of pynput handling initialization etc.

Important functions to start

Initialize a Canvas object - Canvas(width, height, color_channels, pixel_to_point_ratio) Note: Currently pixel_to_point_ratio is incomplete and recommended to be set to one.
Generate a random Canvas - randomizer(canvas: dh.Canvas, object_size = 1, allow_intersection = False, choices: list = [1,2,3,4,5], weights = [0.1,0.2,0.3,0.2,0.1], ratio_rangeA = 0.1, ratio_rangeB = 1.0, circle_size_rangeA = 1/12, circle_size_rangeB = 1/6, margin_start_widthC = 1/9, margin_end_widthC = 8/9, margin_start_heightC = 1/9, margin_end_heightC = 8/9, margin_start_widthR = 1/9, margin_end_widthR = 5/9, margin_start_heightR = 1/9, margin_end_heightR = 5/9, add_rangeAW = 1/12, add_rangeBW = 1/3, add_rangeAH = 1/12, add_rangeBH = 1/3)
Utilize A* algorithm - a_star_algorithm(canvas: dh.Canvas, src, dest)

Contact Me

Email - DMGsquaredbusiness@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydrawgen-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydrawgen-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file pydrawgen-0.1.0.tar.gz.

File metadata

  • Download URL: pydrawgen-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pydrawgen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64b4f20eca670b842444ab515a305a773552e2b513e1566cc634af4281a25d3c
MD5 27390bbcfb3217029fc07efb230e35c3
BLAKE2b-256 cd38609116cfd7237ae286b2a01b1d901b93037c4ab40feb3bdfbd16110c9dda

See more details on using hashes here.

File details

Details for the file pydrawgen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydrawgen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pydrawgen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a933a6dfb0645b8c1e885dde5f2c1f86dd38e2f4113b830c28f7ab7d1c590ee4
MD5 92c6c0e5ec1c0c947ba7ff274fad33cf
BLAKE2b-256 16e98b6e91e3d2e9da430de10b92f680a527e94ecd170dfd978d3a509b50a4dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page