How rizafulislam/fourier-name-drawing works
fourier-name-drawing turns Bangla or English text into an animated epicycle drawing, with a Python API and CLI as entry points. The core workflow selects fonts, shapes glyphs into joined contours, computes a Fourier series, then renders frames for preview or encoded video/GIF output. The graph also preserves font acquisition and the notebook/demo-facing usage described in the README. Relationships are based on the shown source and README; no unsampled implementation links are asserted.
Main entry points: __init__.py Python API · cli.py CLI · render.py Video/GIF encoder · outlines.py Text layout
Components 17
User entry points
- CLI
fourier_name/cli.py - Python API
fourier_name/__init__.py
Text geometry
- Glyph shaping
fourier_name/outlines.py - Text layout
fourier_name/outlines.py - Contour joining
fourier_name/outlines.py
Fourier representation
- Series construction
fourier_name/__init__.py - Path resampling
fourier_name/fourier.py - FFT coefficients
fourier_name/fourier.py - Fourier series
fourier_name/fourier.py
Rendering output
- Epicycle renderer
fourier_name/render.py - PNG preview
fourier_name/cli.py - Video/GIF encoder
fourier_name/render.py
Font resources
- Font selection
fourier_name/fonts.py - Font download/cache
fourier_name/fonts.py
Other components
- Name author
- ffmpeg
- Drawing output
Connections 21
- Name author → CLI: provides text
README.md - Name author → Python API: provides text
README.md - CLI → Python API: builds series
fourier_name/cli.py - Python API → Font selection: selects font
fourier_name/__init__.py - Font selection → Font download/cache: downloads fallback
fourier_name/fonts.py - Python API → Text layout: lays out text
fourier_name/__init__.py - Text layout → Glyph shaping: shapes glyphs
fourier_name/outlines.py - Text layout → Contour joining: joins contours
fourier_name/__init__.py - Python API → Series construction: constructs series
fourier_name/__init__.py - Series construction → Path resampling: resamples path
fourier_name/fourier.py - Path resampling → FFT coefficients: feeds samples
fourier_name/fourier.py - FFT coefficients → Fourier series: creates series
fourier_name/fourier.py - Python API → Epicycle renderer: creates renderer
fourier_name/__init__.py - CLI → Epicycle renderer: creates renderer
fourier_name/cli.py - Epicycle renderer → Fourier series: evaluates series
fourier_name/render.py - CLI → PNG preview: saves final frame
fourier_name/cli.py - Python API → Video/GIF encoder: encodes animation
fourier_name/__init__.py - CLI → Video/GIF encoder: encodes animation
fourier_name/cli.py - Video/GIF encoder → ffmpeg: streams frames
fourier_name/render.py - Video/GIF encoder → Drawing output: writes MP4/GIF
fourier_name/render.py - PNG preview → Drawing output: writes PNG
fourier_name/cli.py