https://github.com/dnglokpor/csci220-lab-imagetohsvcoords
https://github.com/dnglokpor/csci220-lab-imagetohsvcoords
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnglokpor/csci220-lab-imagetohsvcoords
- Owner: dnglokpor
- Created: 2021-12-09T13:11:39.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-09T13:20:22.000Z (almost 4 years ago)
- Last Synced: 2025-02-22T19:28:28.709Z (8 months ago)
- Language: JavaScript
- Size: 856 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSCI220-Lab-ImagetoHSVCoords
## Author: dnglokpor
## Date: 2020
## Description:
This project uses the **p5** library for Javascript to convert a normal 2D picture into a 3D rendering of it, using the brightness factor of each pixel as a depth coordinate. This allows for cool looking 3D pictures.
## How to use:
- run *npm install* to install dependencies.
- run *node server.js*
- navigate to *localhost:3000*
- Enjoy. The default picture is in the image folder but it an be easily replaced by any by changing the **load** method at line **24** of *client.js**.