Also take a look at the directional coloration map
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
set dFolder to "~/Desktop/screencapture/" | |
do shell script ("mkdir -p " & dFolder) | |
set i to 0 | |
repeat 960 times | |
do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
delay 30 -- Wait for 30 seconds. | |
set i to i + 1 | |
end repeat |
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
/* | |
Goes after | |
Polygon.MakeObservable(Polygon.prototype); | |
//... | |
*/ | |
var Text = Two.Text = function( text ) { |
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
// Usage: | |
// var txt = alignPlane(createText2D('String', 'red', 'Verdana', 64), THREE.RightAlign, THREE.BottomAlign); | |
// scene.addChild(txt); | |
function createTextCanvas(text, color, font, size) { | |
size = size || 24; | |
var canvas = document.createElement('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var fontStr = (font || 'Arial') + ' ' + (size +'px'); | |
ctx.font = fontStr; |