Skip to main content

Python App for Generating Roads 2d Maps

Project description

roadmapgen2d

PyPI version Build Status Total alerts Language grade: Python

Road Map Generator for 2d Maps

screen

Install

$ pip3 install roadmapgen2d

or

$ pip3 install --upgrade roadmapgen2d

Create the some dir with file roadmapgen2d-config.json:

{
    "map-width-px": 5000,
    "map-height-px": 5000,
    "texture-tail-road-width-px": 120,
    "texture-tail-road-height-px": 120,
    "random-max-points": 100,
    "color-hex-background": "000000",
    "color-hex-line-road": "FFFFFF",
    "create-video": false,
    "create-last-frame-as-image": true
}

And than in this directory run:

$ python3 -m roadmapgen2d .

Create video for algorithm work

Requirements:

  • ffmpeg

How it works:

In this progress, script will be write frames (step by step) to .roads-generation/.roads-generation/roadmap*.png

and then script will be call ffmpeg command:

ffmpeg -f image2 -r 15 -i .roads-generation/roadmap%06d.png video.mp4

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

roadmapgen2d-0.0.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

roadmapgen2d-0.0.3-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

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