{"id":21203736,"url":"https://github.com/bl33h/computergraphicstemplatefiles","last_synced_at":"2025-10-16T05:52:06.635Z","repository":{"id":180531776,"uuid":"665263485","full_name":"bl33h/computerGraphicsTemplateFiles","owner":"bl33h","description":"A program that implements a C++ framebuffer for color manipulation and display on a virtual screen.","archived":false,"fork":false,"pushed_at":"2023-07-21T06:54:24.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:45:51.459Z","etag":null,"topics":["cmake","colors","computer-graphics","framebuffer","framebuffers","gcc","template"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bl33h.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-07-11T20:11:17.000Z","updated_at":"2023-07-11T22:15:10.000Z","dependencies_parsed_at":"2024-11-20T20:29:31.556Z","dependency_job_id":"34d107b2-79a2-4468-9283-b0d9b16b4cd7","html_url":"https://github.com/bl33h/computerGraphicsTemplateFiles","commit_stats":null,"previous_names":["bl33h/computergraphicstemplatefiles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bl33h/computerGraphicsTemplateFiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcomputerGraphicsTemplateFiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcomputerGraphicsTemplateFiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcomputerGraphicsTemplateFiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcomputerGraphicsTemplateFiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl33h","download_url":"https://codeload.github.com/bl33h/computerGraphicsTemplateFiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FcomputerGraphicsTemplateFiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279160422,"owners_count":26116716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cmake","colors","computer-graphics","framebuffer","framebuffers","gcc","template"],"created_at":"2024-11-20T20:26:28.584Z","updated_at":"2025-10-16T05:52:06.587Z","avatar_url":"https://github.com/bl33h.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# computerGraphicsTemplateFiles\nThis project contains the source code for a framebuffer implementation in C++. It allows you to manipulate and display colors on a virtual screen. It also provides functionality to clear the screen, set the current color, and store color values in a vector. This repository was made to use as a template for the different activities in the Computer Graphics course.\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://res.cloudinary.com/practicaldev/image/fetch/s--K18o3cwe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r01ddc56dxmcjqpr7p1d.png\" alt=\"pic\" width=\"500\"\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" \u003e\n  \u003ca href=\"#Files\"\u003eFiles\u003c/a\u003e •\n  \u003ca href=\"#Features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#how-to-use\"\u003eHow To Use\u003c/a\u003e \n\u003c/p\u003e\n\n## Files\n\n- src: the file that implements de solution.\n- CMakeLists.txt: the CMake configuration.\n\n## Features\nThe main features of the application include:\n- Framebuffer: The framebuffer.h file provides a framebuffer vector that represents the virtual screen. It is a 1-dimensional vector of Color objects, with dimensions defined by the SCREEN_WIDTH and SCREEN_HEIGHT constants.\n- Color Manipulation: The colors.h file defines the Color struct, which represents an RGB color. It provides functionality to create colors, perform arithmetic operations (addition and multiplication), and clamp color values within a specified range.\n- Clearing the Screen: The clear() function in framebuffer.h clears the framebuffer by filling it with the clearColor value. It utilizes the std::fill algorithm to efficiently set all elements of the vector.\n\n\n## How To Use\nTo clone and run this application, you'll need [Git](https://git-scm.com), [CMake](https://cmake.org/download/), [Chocolatey](https://docs.chocolatey.org/en-us/choco/setup) (in order to execute Make) and a [C++ compiler](https://www.fdi.ucm.es/profesor/luis/fp/devtools/mingw.html) installed on your computer. From your command line:\n\n```bash\n# Clone this repository\n$ git clone https://github.com/bl33h/computerGraphicsTemplateFiles\n\n# Open the folder\n$ cd src\n\n# Run the app\n$ g++ main.cpp -o framebuffer\n$ ./framebuffer\n\n# Build the app using CMake\n$ cmake -G \"Unix Makefiles\" -S . -B build\n$ cd build/\n$ make\n$ GAME.exe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Fcomputergraphicstemplatefiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl33h%2Fcomputergraphicstemplatefiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Fcomputergraphicstemplatefiles/lists"}