Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsApr 15, 2026·3 min de lectura

openFrameworks — Open-Source C++ Toolkit for Creative Coding

openFrameworks (oF) is a C++ toolkit for creative coding: interactive installations, generative art, computer vision, real-time video. Used by artists, researchers, and production studios worldwide for the past two decades.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
step-1.md
Comando de instalación directa
npx -y tokrepo@latest install a933602f-3862-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con dry-run.

TL;DR
openFrameworks is a C++ creative coding toolkit for interactive art, computer vision, and real-time graphics.
§01

What it is

openFrameworks (oF) is an open-source C++ toolkit designed for creative coding. It wraps low-level libraries for graphics (OpenGL), audio (rtAudio, FMOD), video, networking, and computer vision into a consistent API.

openFrameworks targets artists, researchers, and creative technologists building interactive installations, generative art, real-time video processing, and computer vision projects. It has been used in production studios and galleries for over two decades.

§02

How it saves time or tokens

openFrameworks provides a setup-draw loop abstraction similar to Processing but in C++, giving access to native performance without the boilerplate of raw OpenGL or SDL. The addon system (ofx) lets you drop in community modules for Kinect, OSC, GPU shaders, and machine learning without writing integration code from scratch.

§03

How to use

  1. Download openFrameworks from the official site and unzip it.
  1. Use the Project Generator to scaffold a new project for your platform (Xcode, Visual Studio, or Makefile).
  1. Edit ofApp.cpp with your setup and draw logic, then build and run.
§04

Example

// ofApp.cpp -- particle system sketch
#include "ofApp.h"

void ofApp::setup() {
    ofBackground(20);
    ofSetFrameRate(60);
}

void ofApp::draw() {
    for (int i = 0; i < 200; i++) {
        float x = ofNoise(i * 0.1, ofGetElapsedTimef()) * ofGetWidth();
        float y = ofNoise(i * 0.1 + 100, ofGetElapsedTimef()) * ofGetHeight();
        float r = ofNoise(i * 0.1 + 200, ofGetElapsedTimef()) * 20;
        ofSetColor(255, 150);
        ofDrawCircle(x, y, r);
    }
}
§05

Related on TokRepo

§06

Common pitfalls

  • openFrameworks projects are platform-specific. Use the Project Generator to create or update projects when switching between macOS, Windows, or Linux.
  • The addon ecosystem (ofx) varies in maintenance quality. Check the last commit date and oF version compatibility before adding an addon.
  • openFrameworks uses its own build system and project structure. Integrating with CMake or other build tools requires manual configuration.

Preguntas frecuentes

How does openFrameworks compare to Processing?+

Processing uses Java and prioritizes simplicity for beginners. openFrameworks uses C++ and provides native performance with direct access to OpenGL, system APIs, and hardware. Both share the setup-draw loop paradigm but oF is better suited for performance-critical installations.

What platforms does openFrameworks support?+

openFrameworks supports macOS, Windows, Linux, iOS, Android, and Emscripten (web). Each platform has a specific project template generated by the Project Generator tool.

What is the ofx addon system?+

ofx addons are community-contributed modules that extend openFrameworks. They cover Kinect input, OSC networking, GPU compute shaders, machine learning, and more. Addons are typically GitHub repositories that you clone into the addons directory.

Can openFrameworks be used for commercial projects?+

Yes. openFrameworks is released under the MIT license, allowing commercial use without restrictions. Many production studios and agencies use it for client installations and products.

Does openFrameworks support GPU shaders?+

Yes. openFrameworks provides ofShader for loading and running GLSL vertex and fragment shaders. It integrates with the OpenGL pipeline and supports compute shaders on platforms where OpenGL 4.3+ is available.

Referencias (3)

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados