[PySpace] Add CLI options (fractal, size, quality) and an offline render mode

Open
#405 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
66/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start with PySpace/ray_marcher_demo.py, especially the hard-coded settings at lines 22, 25, 255, and 264–266 and the per-frame FPS print at line 469. Read how the current loop selects fractals, configures the camera and handles frames; then try the documented xvfb-run command. Done means the listed options work, rendering one frame creates out/frame0000.png, and the process exits successfully.

Written by the indexing model from the issue text.

Description

area: pyspace good first issue priority: P3 size: S type: enhancement

Summary

Choosing a fractal, window size or camera quality requires editing the script. The main loop also prints the FPS to stdout every frame. A small CLI and a headless "render N frames to PNG" mode would make the project easy to demo, screenshot for the docs, and smoke-test in CI.

Location

  • PySpace/ray_marcher_demo.py:22,25,255,264-266 (hard-coded size, fps, fractal, camera)
  • PySpace/ray_marcher_demo.py:469 (print(clock.get_fps()) each frame)

Evidence

A 30 s run printed 61 lines of output, most of them a bare FPS value (1.2556504011154175).

Expected

python ray_marcher_demo.py --fractal mandelbox --size 1280x720 --aa 2 works, and --render out/ --frames 1 writes a PNG and exits.

Proposed fix

Add argparse with --fractal {infinite_spheres,butterweed_hills,mandelbox,mausoleum,menger,tree_planet,sierpinski_tetrahedron,snow_stadium,test_fractal}, --size, --fps, --aa, --render DIR --frames N. Show the FPS in the window caption instead of printing it.

Acceptance criteria

  • Each example fractal selectable from the CLI
  • xvfb-run -a python ray_marcher_demo.py --fractal menger --render out --frames 1 writes out/frame0000.png and exits 0

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref fractals-equations-037


Generated by Claude Code

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.