Skip to main content

A static content generator for interactive and parametrisable p5.js canvases.

Project description

Ginpar

Awkwardly named after Generative Interactive Parametrisable Canvases.

This is a light Python script that converts a list of P5.js projects into an interactive website that includes forms to control the most important project variables (defined by you) and adds utilities to make easier to replicate previous results by forcing the use of seeds.

Current version may work for other libraries, but it's only meant for P5.js.

Following versions my guarantee support for different libraries.

How to use

  1. Download the content of this repository.
  2. Clear the contents of sketches/ and create your own.
  3. For each script, you should add this (preferably at the beginning):
    /* ## */
    const params = {
    height: {
        value: 500,
        type: "number",
        range: [0, 4096]
    },
    my-variable: {
        value: .8,
        type: "slide",
        range: [0, 1],
        step: .05
        // ...
    },
    //   ...
    };
    /* ## */
    
    Note that the /* ## */ are the important thing to add!
  4. Make sure config.py is properly set up. Here you can specify the urls for each library you'd need to use, and metadata for the website.
  5. Run python build.py.
  6. Enjoy your website created at public/.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

ginpar-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

Ginpar-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ginpar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ginpar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b25d9d152929424818e4db6a8c75b3a9e0214c622b86b500cc659641f6ee86
MD5 8c723ee4389bb025d7d48efbd6420e9a
BLAKE2b-256 345d5d3f9f3ba34156846d8eec8f4b30ba3f7df8cf7459a750114f1cc1c9beb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Ginpar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for Ginpar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8529b9464f23508045094cf31670b5dbbb66fbdaf21794538dd582df8df11e9
MD5 4cbaafbb4f6f452b35f28b24782b5551
BLAKE2b-256 537a89827dfa79751a216d70a1096fbf46eb7579545258962bbe9e86b5a05683

See more details on using hashes here.

Supported by

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