Hey, remember crowds?
Made with the wonderful open peeps by Pablo Stanley
A Pen by Ozcan Durak on CodePen.
Hey, remember crowds?
Made with the wonderful open peeps by Pablo Stanley
A Pen by Ozcan Durak on CodePen.
| //This script has been written for test purposes within couple mins. | |
| //Change this according to your canvas. Grab this from inspect element! | |
| var can = document.querySelector('canvas.canvas-outline.ng-tns-c340-20.lower-canvas'); | |
| //Resize the image for IOS 6.5" screens. | |
| var resizedCanvas = document.createElement("canvas"); | |
| var resizedContext = resizedCanvas.getContext("2d"); | |
| resizedCanvas.height = "2688"; | |
| resizedCanvas.width = "1242"; |
| To fix the Network Initialisation Failed Message: | |
| Type "sudo nano /Library/Preferences/Parallels/network.desktop.xml" (without quotation marks) into the Terminal | |
| Input password and press ENTER | |
| Find "<UseKextless>1</UseKextless>" (value may be-1), and change the 1 (or-1) to 0. It should look like "<UseKextless>0</UseKextless>". If you can't to find this tag, then just create it under root tag "<ParallelsNetworkConfig ...>here</ParallelsNetworkConfig>" | |
| CTRL+X and it will ask you if you want to save changes |
| <script> | |
| THREE.ShapeUtils.triangulateShape = (function() { | |
| var pnlTriangulator = new PNLTRI.Triangulator(); | |
| return function triangulateShape(contour, holes) { | |
| return pnlTriangulator.triangulate_polygon([contour].concat(holes)); | |
| }; | |
| })(); | |
| </script> | |
| <div id="three-container"></div> |