Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

radko94/computer_graphics

Repository files navigation

Hi# Computer Graphics Project

This repository contains a collection of tasks and implementations related to computer graphics, developed as part of a university course. Each task demonstrates a specific algorithm or concept in computer graphics, implemented using HTML5 Canvas and JavaScript.

Table of Contents


Task 1: RGB ⇄ CMYK Converter

Description: A tool to convert between RGB and CMYK color models with live preview.

File: task_1.html


Task 2: Pseudo-3D Square

Description: Draws a pseudo-3D square using line segments.

File: task_2.html


Task 3: Bresenham Line Algorithm

Description: Implements the Bresenham algorithm to draw a line.

File: task_3.html


Task 4: Bresenham Circle Algorithm

Description: Implements the Bresenham algorithm to draw a circle.

File: task_4.html


Task 5: Line Translation

Description: Demonstrates line translation by applying a translation vector.

File: task_5.html


Task 6: Circle Translation

Description: Demonstrates circle translation by applying a translation vector.

File: task_6.html


Task 7: Line Rotation

Description: Rotates a line around the origin by a specified angle.

File: task_7.html


Task 8: Line Scaling

Description: Scales a line by a specified factor.

File: task_8.html


Task 9: Bresenham with Dash Pattern

Description: Implements the Bresenham algorithm with a customizable dash-gap pattern.

File: task_9.html


Task 10: Polygon Hatching

Description: Fills a polygon with horizontal hatching using scanline algorithms.

File: task_10.html


Task 11: Cohen–Sutherland Line Clipping

Description: Implements the Cohen–Sutherland algorithm for line clipping within a rectangular window.

File: task_11.html


How to Run

  1. Clone the repository:
    git clone <repository-url>

About

University course project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages