{"id":21203739,"url":"https://github.com/bl33h/fillinganypolygon","last_synced_at":"2025-09-23T17:28:52.350Z","repository":{"id":180622369,"uuid":"663707777","full_name":"bl33h/fillingAnyPolygon","owner":"bl33h","description":"A program that uses a framebuffer to fill any polygon and save the result as a bitmap (BMP) file in the build folder. It supports drawing and filling polygons with custom shape and color.","archived":false,"fork":false,"pushed_at":"2023-07-13T06:14:43.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T15:15:29.397Z","etag":null,"topics":["cmake","computer-graphics","cpp","gcc","make","polygon","polygons","vector"],"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-07T23:25:05.000Z","updated_at":"2023-07-18T09:36:16.000Z","dependencies_parsed_at":"2023-07-16T06:47:40.804Z","dependency_job_id":null,"html_url":"https://github.com/bl33h/fillingAnyPolygon","commit_stats":null,"previous_names":["bl33h/fillinganypolygon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FfillingAnyPolygon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FfillingAnyPolygon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FfillingAnyPolygon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bl33h%2FfillingAnyPolygon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bl33h","download_url":"https://codeload.github.com/bl33h/fillingAnyPolygon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658177,"owners_count":20326464,"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","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","computer-graphics","cpp","gcc","make","polygon","polygons","vector"],"created_at":"2024-11-20T20:26:28.800Z","updated_at":"2025-09-23T17:28:47.325Z","avatar_url":"https://github.com/bl33h.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fillingAnyPolygon\nThis project implements a solution for filling any polygon using a framebuffer. It provides the ability to draw and fill polygons of arbitrary shape and color. The outcome is saved as a bitmap (BMP) file in the build folder generated by running the app.\n\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://i.imgur.com/fXGj8nP.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  - colors.h: defines the Color struct and related functions for manipulating colors.\n  - framebuffer.h: contains the framebuffer and related functions for drawing and filling polygons.\n  - point.h: defines the vert struct representing a vertex in a polygon.\n  - main.cpp: the main program that uses the framebuffer to render polygons and generate the BMP files.\n  - out.bmp: the bitmap file generated for the teapot polygon.\n  - out2.bmp: the bitmap file generated for the star polygon.\n  - out3.bmp: the bitmap file generated for the diamond polygon.\n  - out4.bmp: the bitmap file generated for the triangle polygon.\n  - out5.bmp: the bitmap file generated for all the polygons together.\n- CMakeLists.txt: the CMake configuration.\n\n## Features\nThe fillingAnyPolygon project provides the following features:\n- Drawing and filling polygons: The project allows you to define polygons using a list of vertices and specify their outline color and fill color.\n- Outline rendering: The project can render the outline of a polygon using the Bresenham's line drawing algorithm.\n- Polygon filling: The project can fill a polygon using the scanline algorithm to determine the intersection points of the polygon edges with the scanlines.\n- Bitmap generation: The project generates a bitmap (BMP) file as the output, representing the rendered polygons.\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/fillingAnyPolygon\n\n# Open the folder\n$ cd src\n\n# Run and build the app using CMake\n$ cmake -G \"Unix Makefiles\" -S . -B build\n$ cd build/\n$ make\n$ GAME.exe\n```\n\nNote: The main branch was created by merging the changes from the following branches: polygon-1, polygon-2, polygon-3, and polygon-4.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Ffillinganypolygon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbl33h%2Ffillinganypolygon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbl33h%2Ffillinganypolygon/lists"}