{"id":18792362,"url":"https://github.com/kplanisphere/plotted-2d-environment","last_synced_at":"2026-05-05T06:37:37.078Z","repository":{"id":242024618,"uuid":"808465784","full_name":"KPlanisphere/Plotted-2D-Environment","owner":"KPlanisphere","description":"Proyecto 7 - Graficación","archived":false,"fork":false,"pushed_at":"2024-05-31T06:57:29.000Z","size":2035,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T15:26:06.696Z","etag":null,"topics":["2d-graphics","algorithm-implementation","computer-graphics","cpp","data-visualization","graphical-interface","matrix-transformations","opengl","polygon-animation"],"latest_commit_sha":null,"homepage":"https://linktr.ee/planisphere.kgz","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/KPlanisphere.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":"2024-05-31T06:08:37.000Z","updated_at":"2024-05-31T06:58:54.000Z","dependencies_parsed_at":"2024-05-31T08:01:55.967Z","dependency_job_id":"24e7851c-7a77-4424-a888-98a05b37c27a","html_url":"https://github.com/KPlanisphere/Plotted-2D-Environment","commit_stats":null,"previous_names":["kplanisphere/plotted-2d-environment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2FPlotted-2D-Environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2FPlotted-2D-Environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2FPlotted-2D-Environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2FPlotted-2D-Environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KPlanisphere","download_url":"https://codeload.github.com/KPlanisphere/Plotted-2D-Environment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718371,"owners_count":19685725,"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":["2d-graphics","algorithm-implementation","computer-graphics","cpp","data-visualization","graphical-interface","matrix-transformations","opengl","polygon-animation"],"created_at":"2024-11-07T21:19:37.955Z","updated_at":"2025-12-28T10:30:16.006Z","avatar_url":"https://github.com/KPlanisphere.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plotted 2D Environment\n\n## Overview\n\nPlotted 2D Environment is a graphical project focused on creating and animating 2D polygons within a defined environment. This project demonstrates the use of graphical libraries and techniques to visualize and manipulate polygonal shapes.\n\n\u003cp align= \"center\"\u003e\n    \u003cimg src=\"https://github.com/KPlanisphere/binary-tree-operations/assets/60454942/adfca7bb-671e-4fb0-b4aa-86997989bfe8\" style=\"width: 60%; height: auto;\"\u003e\n\u003c/p\u003e\n\n## Files and Structure\n\nThe repository contains the following files and directories:\n\n- `PoligonoAnimadoModelado.cbp`: The project file for Code::Blocks IDE.\n- `PoligonoAnimadoModelado.depend`: Dependency file for the project.\n- `PoligonoAnimadoModelado.layout`: Layout configuration file for the project.\n- `Report_Entorno2D.pdf`: A report detailing the project, its design, and implementation.\n- `main.cpp`: The main source code file for the project.\n- `bin/`: Directory for binary files.\n- `include/`: Directory for header files.\n- `obj/`: Directory for object files.\n- `src/`: Directory for additional source files.\n\n## Main Source File: `main.cpp`\n\nThe main logic of the project is implemented in `main.cpp`. Below is a brief overview of its content:\n\n```cpp\n// Initialization of graphical libraries\n#include \u003cGL/glut.h\u003e\n\nfloat angle = 0, rad = 0, red = 0;\nint first = 1;\nint band[50];\nint supercont = 0;\nControlV CV[20];\nControlV CVBG[20];\n\n// Initialization function\nvoid init(void) {\n    glColor3f(1.0, 1.0, 1.0);\n    glPointSize(1.0);\n    glClearColor(0.0, 0.0, 0.0, 1.0);\n    glMatrixMode(GL_PROJECTION);\n    glLoadIdentity();\n    gluOrtho2D(-500, 500, -240, 240);\n    glMatrixMode(GL_MODELVIEW);\n    glLoadIdentity();\n}\n\n// Function to clear the screen\nvoid clearScreen() {\n    glClear(GL_COLOR_BUFFER_BIT);\n    glFlush();\n    Sleep(30);\n}\n\n// Function to draw the main graphical content\nvoid drawGraphicalContent() {\n    glClear(GL_COLOR_BUFFER_BIT);\n    Stage show;\n    show.Theater();\n    supercont++;\n    glFlush();\n    Sleep(30);\n}\n\n// Main function\nint main(int argc, char** argv) {\n    glutInit(\u0026argc, argv);\n    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);\n    glutInitWindowPosition(150, 100);\n    glutInitWindowSize(1000, 480);\n    glutCreateWindow(\"Plotted 2D Environment\");\n    init();\n    BanderaCero(50);\n    glutDisplayFunc(drawGraphicalContent);\n    glutIdleFunc(drawGraphicalContent);\n    glutMainLoop();\n    return 0;\n}\n```\n\n## Report [IMPORTANT]\n\nThe `Report_Entorno2D.pdf` file provides a comprehensive overview of the project, including:\n\n-   Project objectives\n-   Design and implementation details\n-   Results and findings\n-   Future work and improvements\n\n## How to Build and Run\n\n### Prerequisites\n\n-   Code::Blocks IDE\n-   OpenGL and GLUT libraries\n\n### Steps\n\n1.  Clone the repository:\n    \n\t```bash\n\tgit clone https://github.com/KPlanisphere/Plotted-2D-Environment.git\n\t```\n    \n2.  Open the `PoligonoAnimadoModelado.cbp` project file in Code::Blocks.\n3.  Build and run the project within the IDE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fplotted-2d-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkplanisphere%2Fplotted-2d-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fplotted-2d-environment/lists"}