astro_render_moon_phase_illustration
Standalone moon-phase illustration (Free⌃ default palette).
- Layer: render
- Methods: illustration
- Free tier: illustration
- Paid tier: —
Description
Standalone moon-phase illustration (Free⌃ default palette).
Methods:
illustration [Free] — a UT date → standalone SVG moon-phase illustration with phase stats
Input schema
illustration
| Field | Type | Required | Constraints |
|---|---|---|---|
| date.year | integer | yes | int |
| date.month | integer | yes | min 1, max 12, int |
| date.day | integer | yes | min 1, max 31, int |
| date.hour | integer | no | min 0, max 23, int |
| date.minute | integer | no | min 0, max 59, int |
| sizePx | integer | no | min 64, max 1024, int |
| palette.light | string | no | — |
| palette.dark | string | no | — |
| palette.background | string | no | — |
| mode | "light" | "dark" | no | — |
Example request
{
"method": "illustration",
"date": {
"year": 2024,
"month": 6,
"day": 1
}
}
Example response (captured; long values elided)
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 760 760\" width=\"760\" height=\"760\"><rect width=\"760\" height=\"760\" fi… (90027 chars total)",
"jdUT": 2460462.500001,
"phaseAngle": 286.941686,
"illuminatedFraction": 0.354301,
"phaseName": "Last Quarter"
}
Rendered example