About this project
Collagen is a tool designed as an "image editor for programmers." It allows users to describe the layout of SVG elements, image files (JPEG, PNG, etc.), and other SVGs using a textual manifest file (JSON or Jsonnet). The tool then compiles these descriptions and assets into a single SVG file, automatically base64-encoding any external images to ensure portability.
Key capabilities include:
- Programmatic Layout: By using Jsonnet, users can leverage variables, arithmetic, conditional logic, and for-loops to create complex, synchronized geometric patterns.
- Asset Integration: Supports embedding raster images and other SVGs without losing vector precision or increasing file size unnecessarily.
- Development Workflow: Includes a CLI tool (`clgn`) with a watch mode for real-time regeneration and an in-browser editor that supports both text-based and direct visual editing.
- Non-destructive Editing: All source assets remain in their original form within the project folder.
The tool is particularly useful for creating precise diagrams, memes, or generative art where traditional GUI-based image editors lack programmatic control.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.