Post-Processing

Grid

Grid overlays decorative lines on the image, creating wireframe, cyberpunk, or architectural aesthetics. Supports perspective distortion, glow effects, and animation.

Example Configuration

grid.json
{
  "effect": {
    "postProcesses": [
      {
        "id": "pp_grid",
        "type": "grid",
        "enabled": true,
        "settings": {
          "scale": 20,
          "lineWidth": 1,
          "intensity": 0.5,
          "color": "#ffffff",
          "rotation": 0
        }
      }
    ]
  }
}

Settings

PropertyTypeRangeDefaultDescription
scalenumber1-5020Grid cell size
lineWidthnumber1-101Line thickness
intensitynumber0-10.5Line opacity
colorcolorhex#ffffffLine color
rotationnumber0-3600Grid rotation in degrees
noisenumber0-10Line distortion noise
randomnessnumber0-10Line spacing variation
glownumber0-10Line glow/emission
animatedboolean-falseAnimate the noise
softnessnumber0-10Edge blur softness
perspectivenumber0-10Floor/wall perspective effect

Suggested Presets

StyleSettings
Blueprintscale: 25, color: #00aaff, intensity: 0.4
Neon Floorscale: 30, color: #ff00ff, glow: 0.6, perspective: 0.7
Glitchyscale: 20, noise: 0.3, randomness: 0.2, animated: true
Wireframescale: 15, lineWidth: 1, intensity: 0.8

API Usage

render-request.json
POST /api/v1/render
{
  "state": {
    "canvas": {
      "aspectRatio": "16:9",
      "backgroundColor": "#1a1a1a"
    },
    "layers": [...],
    "selectedLayerId": null,
    "effect": {
      "effectId": "ascii-standard",
      "enabled": true,
      "postProcesses": [
        {
          "id": "pp_1",
          "type": "grid",
          "enabled": true,
          "settings": {
            "scale": 30,
            "lineWidth": 2,
            "intensity": 0.3,
            "color": "#00ffff",
            "glow": 0.5,
            "perspective": 0.5
          }
        }
      ]
    }
  },
  "format": "png",
  "width": 1920,
  "height": 1080
}

Tips

  • Use glow for neon/cyberpunk aesthetics
  • Perspective creates floor or horizon grids
  • Combine with bloom for glowing lines
  • Rotation at 45° creates diamond patterns
  • Add noise and animation for unstable/glitchy look