{"id":28917922,"url":"https://github.com/anonxarka/computer-graphics-cse423-bracu","last_synced_at":"2026-04-24T22:33:57.300Z","repository":{"id":297765768,"uuid":"997834318","full_name":"AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU","owner":"AnonXarkA","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-07T10:07:33.000Z","size":739,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T01:02:37.379Z","etag":null,"topics":["brac","bracu","bracu-cse","bracu-cse-lab","bracu-cse423","bracu-cse423-computer-graphics","bracu-cse423-computer-graphics-lab","bracucse","bracucse423","computer-graphics","cse423","cse423-bracu","cse423-lab","midpoint-circle-algorithm","midpoint-line-algorithm","opengl","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/AnonXarkA.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,"zenodo":null}},"created_at":"2025-06-07T09:34:14.000Z","updated_at":"2025-06-07T10:22:28.000Z","dependencies_parsed_at":"2025-06-07T10:40:18.973Z","dependency_job_id":null,"html_url":"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU","commit_stats":null,"previous_names":["anonxarka/computer-graphics-cse423-bracu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnonXarkA%2FCOMPUTER-GRAPHICS-CSE423-BRACU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnonXarkA%2FCOMPUTER-GRAPHICS-CSE423-BRACU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnonXarkA%2FCOMPUTER-GRAPHICS-CSE423-BRACU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnonXarkA%2FCOMPUTER-GRAPHICS-CSE423-BRACU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnonXarkA","download_url":"https://codeload.github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnonXarkA%2FCOMPUTER-GRAPHICS-CSE423-BRACU/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261217815,"owners_count":23126279,"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":["brac","bracu","bracu-cse","bracu-cse-lab","bracu-cse423","bracu-cse423-computer-graphics","bracu-cse423-computer-graphics-lab","bracucse","bracucse423","computer-graphics","cse423","cse423-bracu","cse423-lab","midpoint-circle-algorithm","midpoint-line-algorithm","opengl","python","python3"],"created_at":"2025-06-22T01:02:42.974Z","updated_at":"2026-04-24T22:33:57.296Z","avatar_url":"https://github.com/AnonXarkA.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COMPUTER-GRAPHICS-CSE423-BRACU\n\n\n# Lab Assignment 1\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%201\"\u003e LAB 1\u003c/a\u003e \u003cbr\u003e \n\nTask 1: Drawing Pixels\nYou are supposed to draw 50 pixels (coordinate points). For this you need to generate\n100 random values (50 x - coordinates and 50 y - coordinates). You do not need to join\nany pixels for this task.\n\nTask 2: House Building\nYou are to draw a House using the base primitives: points, lines, or triangles. You can\nuse GL_POINTS, GL_LINES or GL_TRIANGLES for designing this house. A diagram\nhas been provided as an example. You can modify the house design to your liking.\n\n[![](https://i.ibb.co/wZgCMHh8/Screenshot-83.png)](https://imgbb.com/)\n\n Task 3: Student ID\nShow your Student ID where each digit should be of different colors.\n\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%201\"\u003e LAB 1\u003c/a\u003e \u003cbr\u003e \n\n|\n\n\n|\n\n\n# Lab Assignment 02\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%202\"\u003e LAB 2\u003c/a\u003e \u003cbr\u003e \n\n🔭 Lab Assignment 2: Midpoint Line Algorithm \u0026 8-Way Symmetry\n\nThis assignment introduces a more efficient line drawing method, the Midpoint Line Algorithm, and the concept of 8-way symmetry to handle lines of any slope.\n\n💡 Topic Overview\n\nThe Midpoint Line Algorithm is an incremental algorithm that uses only integer arithmetic, making it significantly faster than the DDA algorithm. The core challenge is to write a single, robust function that can draw a line in any of the 8 possible zones by converting its coordinates to Zone 0, performing the calculations, and then converting them back to the original zone.\n\n⚙️ Algorithm Details\n\nThe algorithm decides between the two possible next pixels, East (E) or North-East (NE), by checking the position of the midpoint (M) between them relative to the true line path. This avoids floating-point calculations and relies on a simple decision parameter.\n\n📝 Activity Task\n\nObjective: Draw the last two digits of your student ID.\n\nImplementation: You must implement the Midpoint Line Algorithm with 8-way symmetry to handle all the lines required to draw the two digits.\n\nExample Output:\n\nFor a student ID ending in 06, the output should look like this:\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%202\"\u003e LAB 2\u003c/a\u003e \u003cbr\u003e \n\n\n# Lab Assignment 03\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%203\"\u003e LAB 3\u003c/a\u003e \u003cbr\u003e \n\n\n🎨 Lab Assignment 3: Midpoint Circle Algorithm\nThis lab builds upon the concepts of the Midpoint Algorithm and 8-way symmetry, applying them to efficiently draw circles.\n\n💡 Topic Overview\nSimilar to the line algorithm, the Midpoint Circle Algorithm uses a decision parameter and integer arithmetic to determine the closest pixel to the true circle path at each step. By calculating the pixels for just one octant (1/8th of the circle), we can use the 8-way symmetry of a circle to plot the points for the other seven octants without re-calculation, making the process highly efficient.\n\n📝 Activity Task\nObjective: Draw a flower-like pattern using multiple intersecting circles.\n\nImplementation: Implement the Midpoint Circle Drawing algorithm. The final output should replicate the provided image, which consists of one large circle and eight smaller circles forming a rosette pattern.\n\nExample Output:\n\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Lab%203\"\u003e LAB 3\u003c/a\u003e \u003cbr\u003e \n\n# PROJECT\n\n\n\n# Facial Expression Simulator\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Project\"\u003e Project\u003c/a\u003e \u003cbr\u003e \n\nAn interactive OpenGL program that displays various facial expressions with animation capabilities.\n\n\n\n## Features\n\n- Displays 6 different facial expressions:\n  - Happy 😊\n  - Sad 😢\n  - Crying 😭\n  - Neutral 😐\n  - Laughing 😂\n  - Smirk 😏\n- Includes an animated rotating \"Joker Face\" (option 7)\n- Uses midpoint algorithms for drawing lines and circles\n- Interactive menu system\n\n## Requirements\n\n- Python 3.x\n- PyOpenGL\n- NumPy\n- FreeGLUT (for Linux/Mac) or equivalent OpenGL utilities\n\nWhen prompted, enter a number (1-7) corresponding to the emotion you want to display:\n\n################\nFacial expression based on current emotion: \n1) Happy \n2) Sad \n3) Crying \n4) Neutral \n5) Laughing \n6) Smirk \n7) Rotating Joker Face trying to more laugh (Animated)\nWhat's your emotion right now? Enter:\n\n\n## Technical Details:\n\nUses midpoint line and circle drawing algorithms\n\nImplements zone conversion for line drawing in all octants\n\nIncludes matrix transformations for rotation animation\n\nBuilt with:\n\nOpenGL for rendering\n\n\nAns: ⚡  \u003ca href=\"https://github.com/AnonXarkA/COMPUTER-GRAPHICS-CSE423-BRACU/tree/main/Project\"\u003e Project\u003c/a\u003e \u003cbr\u003e \n\nGLUT for window management\n\nNumPy for matrix operations\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonxarka%2Fcomputer-graphics-cse423-bracu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonxarka%2Fcomputer-graphics-cse423-bracu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonxarka%2Fcomputer-graphics-cse423-bracu/lists"}