¡@

Home 

javascript Programming Glossary: pts

Image manipulation and texture mapping using HTML5 Canvas?

http://stackoverflow.com/questions/4774172/image-manipulation-and-texture-mapping-using-html5-canvas

coordinates on texture function textureMap ctx texture pts var tris 0 1 2 2 3 0 Split in two triangles for var t 0 t 2.. in two triangles for var t 0 t 2 t var pp tris t var x0 pts pp 0 .x x1 pts pp 1 .x x2 pts pp 2 .x var y0 pts pp 0 .y y1.. for var t 0 t 2 t var pp tris t var x0 pts pp 0 .x x1 pts pp 1 .x x2 pts pp 2 .x var y0 pts pp 0 .y y1 pts pp 1 .y y2..

Baking transforms into SVG Path Element commands

http://stackoverflow.com/questions/5149301/baking-transforms-into-svg-path-element-commands

' ' y2 break case 'polyline' case 'polygon' for var i 0 l pts el.points len pts.numberOfItems i len i var p pts.getItem i.. 'polyline' case 'polygon' for var i 0 l pts el.points len pts.numberOfItems i len i var p pts.getItem i l i p.x ' ' p.y path.setAttribute.. i 0 l pts el.points len pts.numberOfItems i len i var p pts.getItem i l i p.x ' ' p.y path.setAttribute 'd' M l.shift L..

Three.js - Custom Shapes?

http://stackoverflow.com/questions/8284233/three-js-custom-shapes

half circle into 3D a half sphere. Here's an example var pts points array the path profile points will be stored here var.. angle detail loop from 0.0 radians to PI 0 180 degrees pts.push new THREE.Vector3 Math.cos angle radius 0 Math.sin angle.. angle radius to x z geometry new THREE.LatheGeometry pts 12 create the lathe with 12 radial repetitions of the profile..