How friction2d/friction works
Friction is a desktop motion-graphics application for creating vector and raster animations for web and video. The principal workflow starts in the main window, edits scenes and animation state in a document, and previews or renders a selected scene; project persistence, effects, expressions, audio, and caching support that work. Relationships are limited to those shown in the README, excerpts, or SOURCE INDEX; several subsystem links are therefore marked dashed and unverified.
Main entry points: mainwindow.h Main Window · canvas.h Scene Canvas · renderhandler.cpp Render Handler · document.h Document
Components 22
Application UI
- Application Startup
src/app/main.cpp - Main Window
src/app/GUI/mainwindow.h - Layout Manager
src/app/GUI/layouthandler.cpp
Scene Authoring
- Document
src/core/Private/document.h - Scene Canvas
src/core/canvas.h - Timeline Editing
src/app/GUI/timelinewidget.cpp - Animation Curves
src/core/Animators/animator.cpp - Expressions
src/core/Expressions/expression.cpp - Path Effects
src/core/PathEffects/patheffect.cpp - Raster Effects
src/core/RasterEffects/rastereffect.cpp - Project Import Export
src/core/XML/xevimporter.cpp
Preview and Render
- Render Handler
src/app/renderhandler.cpp - Render Settings UI
src/app/GUI/RenderWidgets/rendersettingsdialog.cpp - Scene Render Data
src/core/Boxes/canvasrenderdata.cpp
Runtime Services
- Task Scheduler
src/core/Private/Tasks/taskscheduler.h - Frame Cache
src/core/CacheHandlers/sceneframecontainer.cpp - Audio Playback
src/core/Sound/audiohandler.cpp - Sound Composition
src/core/Sound/soundcomposition.cpp - Application Settings
src/core/Private/esettings.h - Platform Support
src/core/appsupport.h - Memory Handler
src/app/memoryhandler.cpp
Other components
- Artist
Connections 23
- Artist → Application Startup: creates animations
README.md - Application Startup → Main Window: opens
src/app/main.cpp - Main Window → Document: uses
src/app/GUI/mainwindow.h - Main Window → Layout Manager: uses
src/app/GUI/mainwindow.h - Main Window → Render Handler: uses
src/app/GUI/mainwindow.h - Document → Scene Canvas: manages scenes
src/core/Private/document.h - Scene Canvas → Animation Curves: uses properties
src/core/canvas.h - Scene Canvas → Scene Render Data: creates render data
src/core/canvas.h - Render Handler → Document: updates state
src/app/renderhandler.cpp - Render Handler → Audio Playback: starts playback
src/app/renderhandler.cpp - Render Handler → Sound Composition: starts scene audio
src/app/renderhandler.cpp - Audio Playback → Sound Composition: mixes audio
src/core/Sound/audiohandler.cpp - Render Handler → Task Scheduler: schedules work
src/app/renderhandler.cpp - Scene Render Data → Frame Cache: caches frames
- Timeline Editing → Animation Curves: edits animation
- Document → Project Import Export: persists project
- Scene Canvas → Path Effects: applies effects
- Scene Canvas → Raster Effects: applies effects
- Main Window → Render Settings UI: configures output
- Main Window → Application Settings: configures
- Application Startup → Platform Support: initializes platform
src/app/main.cpp - Memory Handler → Task Scheduler: limits work
- Expressions → Animation Curves: binds values