Skip to content

Lukeman28/CS452-Spring2015-Lab2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS452-Spring2015-Lab2

CS452/EE465 Spring 2015 Lab1

For this lab I followed the same step in creating a 2D shape from the prvious lab and then created event handlers for the key presses that would call a separate function to identify the key being pressed and then increment a stored value of x or y depending on the key and then these values would be nested inside the shapes vertices so that when redrawn it would account for the changes making the shape move. Everytime this function is called and the end of it the buffers will be stored again and the canvas will be cleared, follwing with redrawing the object. My biggest challenge was getting color to work. To do this I took the workign code I already had with a lack of color and applied it to example code I found from webgl tutorials and implemented them together to get a colored object. the website I referenced is noted in my javascript document.

About

CS452/EE465 Spring 2015 Lab1

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 87.6%
  • HTML 12.4%