Skip to content
Daynlight edited this page Dec 8, 2025 · 1 revision

Usage

๐Ÿšง Note: More advanced usage, UI improvements, and 3D support are planned! See Roadmap.md for details.

This page explains how to run Graphite, use command-line flags, and work with scripts.


Running Graphite

Run the application from your terminal:

Graphite <flags> <path>

Example:

Graphite -i ./

Flags

  • -h / --help: Show help
  • -i / --init: Initialize default files
  • -s / --sandbox: Enable sandbox mode
  • -v / -d / --verbose / --debug: Enable verbose/debug output

Script Workflow

  1. Edit Graphite.cpp to write or modify your script
  2. Run Graphite to see your changes
  3. Use sandbox mode (-s) for safer editing
  4. Use verbose mode (-v) for debugging output

Path Argument

The last argument sets the working directory or filename. If a filename is specified, a directory is created instead.


Tips

  • Always implement Init, Update, Draw, and Destroy in your script
  • Use the math library for points and geometry
  • See Examples.md for sample scripts

For troubleshooting, see Troubleshooting.md.

Graphite Wiki Sidebar

Getting Started

References

Project & Versions

Community

Clone this wiki locally