Skip to content

Development tools

Suisei edited this page Jan 17, 2025 · 12 revisions

This page lists numerous blocks of code that you can copy simply by clicking on the corresponding copy button.
This tool is available online here.

The code generator generate automatically the basic code for classes and components from the parameters you enter.
This tool is available online here.

You can generate 4 types of code : a simple wrapper (also named class), a Péguy.js GUI component, a Péguy.js 2D object for 2D canvas and an HTML page.

You can save your parameters by clicking on the button Save settings and saving the JSON data in a file.
You can load saved parameters by dropping the JSON file on the interface.

Generate a simple class

Generate a component

Generate a 2D object for 2D canvas

Generate an HTML page

The sandbox is used to test some code.
This tool is available online here.

Clone this wiki locally