For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var cameraZ = camera.position.z; | |
| var planeZ = 5; | |
| var distance = cameraZ - planeZ; | |
| var aspect = viewWidth / viewHeight; | |
| var vFov = camera.fov * Math.PI / 180; | |
| var planeHeightAtDistance = 2 * Math.tan(vFov / 2) * distance; | |
| var planeWidthAtDistance = planeHeightAtDistance * aspect; | |
| // or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** | |
| * Basic code to parse the values in the "data" attribute in a Google Maps URL to an Array. | |
| * There will likely still be some work to do to interpret the resulting Array. | |
| * | |
| * Based on information from: | |
| * http://stackoverflow.com/a/34275131/1852838 | |
| * http://stackoverflow.com/a/24662610/1852838 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); // optional | |
| spl_autoload_register(function ($class) { | |
| $file = preg_replace('#\\\|_(?!.+\\\)#','/', $class) . '.php'; | |
| if (stream_resolve_include_path($file)) | |
| require $file; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Daniel Ott | |
| * entities.css | |
| * 31 January 2011 | |
| * | |
| * Adding arrows to thinks makes them more clickable. Right? | |
| * Use CSS's :after pseudo-selector to insert hexadecimal values | |
| * of html entities into the document. Less markup. More awesome. | |
| */ | |
| .add-an-arrow:after { |