{"id":20900334,"url":"https://github.com/ghztomash/ofxheadlessfbo","last_synced_at":"2026-04-25T13:36:48.372Z","repository":{"id":147062836,"uuid":"460204070","full_name":"ghztomash/ofxHeadlessFbo","owner":"ghztomash","description":"openFrameworks addon for CPU based drawing 2D primitive shapes.","archived":false,"fork":false,"pushed_at":"2026-02-23T23:13:19.000Z","size":99,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T05:17:37.281Z","etag":null,"topics":["drawing","graphics","ofxaddon","openframeworks","openframeworks-addon","rasberry-pi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghztomash.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-16T22:50:31.000Z","updated_at":"2026-02-23T23:13:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"1aa6519d-e151-421e-b813-ca7545e1233a","html_url":"https://github.com/ghztomash/ofxHeadlessFbo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghztomash/ofxHeadlessFbo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghztomash%2FofxHeadlessFbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghztomash%2FofxHeadlessFbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghztomash%2FofxHeadlessFbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghztomash%2FofxHeadlessFbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghztomash","download_url":"https://codeload.github.com/ghztomash/ofxHeadlessFbo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghztomash%2FofxHeadlessFbo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32264430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drawing","graphics","ofxaddon","openframeworks","openframeworks-addon","rasberry-pi"],"created_at":"2024-11-18T11:19:02.423Z","updated_at":"2026-04-25T13:36:48.360Z","avatar_url":"https://github.com/ghztomash.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofxHeadlessFbo\n\n![ofxHeadlessFbo](screenshot.png)\n\n## Introduction\n\nThis is a simple addon implementing the basic 2D drawing functions that don't\nutilize OpenGL. Inspired from the [Adafruit GFX Library](https://github.com/adafruit/Adafruit-GFX-Library).\nThe shapes are drawn directly to an buffer of `ofPixels` instead of `ofTextures`.\n\nThis addon is intended to be used in applications that run headless,\nfor example a Raspberry Pi controlling LED strips without a monitor connected\n(thus unable to run OpenGL).\n\nI hope you find this useful.\nPlease open an issue if you have suggestions or find bugs, and feel free to\ncontribute improvements.\n\n## Installation\n\nDownload the addon into your `openframeworks/addons/` directory or\ninstall using git:\n`git clone https://github.com/ghztomash/ofxHeadlessFbo.git`\n\n## Use\n\nBefore drawing into the buffer you need to first allocate it's size and\ndefine the pixel color type.\n\n```c++\nofxHeadlessFbo hfbo;\n\nvoid ofApp::setup(){\n    // allocate virtual FBO buffer\n    hfbo.allocate(800, 300, OF_PIXELS_RGBA);\n}\n\nvoid ofApp::update(){\n    hfbo.clear(ofColor(0,0,0,0));\n\n    hfbo.setColor(ofColor(0,255,0));\n    hfbo.drawTriangle( 0, size, size/2.0, 0, size, size);\n    hfbo.setColor(ofColor(0,0,255,127));\n    hfbo.drawRectangle(size/4.0,size/4.0,size/2.0,size/2.0);\n    hfbo.setColor(ofColor(255,255,255,127));\n    hfbo.drawCircle(size/2.0,size/2.0, size/4.0);\n}\n```\n\nThe supported shapes are\n\nYou can draw the buffer directly onto the screen with\n\n```c++\nvoid ofApp::draw(){\n    // draw the virtual FBO\n    hfbo.draw(10, 10);\n}\n```\n\nor get the pixel data and transmit over UDP to LED strips.\n\n## Tested\n\nMacOS, Linux and Windows\n\n## License\n\nBSD\n\n## Credits\n\nCreated and maintained by [Tomash GHz](https://github.com/ghztomash)\nPorted sections from [Adafruit GFX Library](https://github.com/adafruit/Adafruit-GFX-Library)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghztomash%2Fofxheadlessfbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghztomash%2Fofxheadlessfbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghztomash%2Fofxheadlessfbo/lists"}