https://github.com/processing/p5.js/releases/download/0.6.1/p5.zip Download required p5.js libraries
Copy the script file codes inside empty-example folder and link it with index.html file to run following works.
Lab Works of COMP 342
- Flag of Nepal
- Line- DDA and BLA(Slopes >1 and <=1)
- Circle- Mid Point algorithm
- Ellipse- Mid Point algorithm
- 2D Transformation- Translation,Rotation, Scaling, Reflection, Shearing(Using matrix multiplication)
- 2D viewing- Liang Barsky Line Clipping Algorithm
- 3D Transformations
- Windmill design
- Fractal Tree Mini Project