Skip to content

In this repository, we include algorithms that are in the field of Computer Graphics and related topics.

Notifications You must be signed in to change notification settings

ostad-ai/Computer-Graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer-Graphics

Here, we provide programs related to the field of Computer Graphics

  1. Perspective Transformation from scratch in Python.
  2. Hidden Surface Removal with Back-Face Culling in Python.
  3. Illumination models and surface reflections in Python.
  4. Triangle and Barycentric Coordinates in Python.
  5. Barycentric coordinates for triangle and texture mapping in Python.
  6. Point in polygon: Even-odd rule for inside-outside test for polygons in Python.
  7. Texture mapping for quadrilaterals using inverse bilinear interpolation in Python.
  8. Two-dimensional metaballs in Python.
  9. Chaos Game for Iterated Function System (IFS).
  10. The mandelbrot set is a well-known fractal, which is based on a recursive complex function. Here, we review the formulation. Then, two versions of implementing the set with Python are provided.
  11. The julia set is another famous fractal, which follows the behaviour of iterated functions. Here, we display the Julia set for a quadratic complex function. The Python code has two versions: a slow one and a fast one.
  12. Elementary cellular automatom: Elementary CA is used to create some patterns which are interesting. Here, we review these types of CA with Python code.
  13. Two-dimensional cellular automata are mentioned here. 2D CAs are used for creating patterns and simulating some simple life forms. Here, Python codes are used to creating some patterns with CAs.
  14. Perlin noise from scratch: We review Perlin noise and then implement it in Python. Perlin noise is used in Computer Graphics for creating terrains, mountains, clouds, and etc.