PDA

View Full Version : My lines and circle strokes are a little thick... why?



Alex Vincent
07-29-2011, 11:34 PM
https://alexvincent.us/demos/webgl-theater/theater/?show=isometric

Hi, everyone. I've got this mix of WebGL, HTML5 Audio, and Popcorn (from popcorn.js) in a presentation with a minor bug in it. The lines are a little thick, and I can't figure out why.

The relevant code snippets are at:
https://alexvincent.us/demos/webgl-theater/theater/VectorSpaceGL/WebGLInterface.js
https://alexvincent.us/demos/webgl-theater/theater/VectorSpaceGL/geometricObjects.js

Alex Vincent
08-01-2011, 09:52 PM
I figured it out. I trusted CSS to handle the viewport width & height. If I put the width & height directly on the canvas element, it fixes my bug. :roll: