Uncategorized

Create 2d three js scene

Create a 2d three js scene in which:
a. There is a ground (plane) which faces the camera.
i. It will be of white color with grid lines.
b. Create an n sided polygon by placing the vertices using the mouse
i. Move the mouse to a location and then click the leftmouse
button to create a vertex.
i. After creating the desired amount of vertices, there will bea
complete button at the bottom to complete the creation.
ii. After completion a polygon with different color than the ground
is created with the respective vertices.
iii. There will be edge lines for that polygon with distinct color.
iv. You can follow the color code as shown in the images.
c. There will be a reset button at the bottom to delete the polygonand
the user can start creating the polygon again.
d. The participant is required to create the assignment on any
online platform like codepen,jsfiddle and share the link of that.
Also create a video showing that the assignment is working as
required , share it on google drive link
e. The project is to be created only using js, html, css andthree.js
library. No external libraries are allowed.CODE FILE AND VIDEO FILE OF THE WORKING MUST BE CREATED.