Question 1. Using WebGL [call gl.drawElements( ) function] render points at

 

Question 1.

Using WebGL [call gl.drawElements( ) function] render points at coordinates:

-0.4, -0.3, 0,0

 0.5, -0.5, 0.0

 0.6,  0.7, 0.0

-0.3, -0.4, 0.0

Make the canvas width = 600, height = 600, border orange and the points black.

Question 2.

Using WebGL [call drawElements()function]render the rectangle using the following coordinates:

 0.45,  0.45,  0.0

-0.45,  0.45,  0.0  

-0.45, -0.45, 0.0

0.45, -0.45, 0.0

Make the canvas with = 470, height = 470, border red and the rectangle green.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions