animaclock.com
|
about
|
gallery
|
Graph-Based Visual Saliency
Click here for Tutorial
Edit the code below, then click anywhere outside of textarea to update:
Click here to draw your own digits!
var testfont=new function() { this.digitPad = 14; this.groupPad = 25; this.heightFrac = 0.9; this.widthFrac = 1; this.lineCap = 'round'; this.lineGap = .05 this.baseColor = [ 255, 0, 255 ]; this.partColor = [ 0, 9, 0 ]; this.secondColor = [0, 221, 221]; this.colonColors = { a:[0, 0, 0] , b:[0, 0, 0] }; this.baseLineWidth = 9; this.partLineWidth = 8; this.colonRadius = 8; this.beginAniTime = 0.0; this.endAniTime = 1; this.baseInFront = false this.pulsate = false; this.disableSlowest = false; this.secondsScale = {val:0.5, pos:'top'}; this.t = new Array(); for (var i=0;i<=50;i++) this.t[i] = new Array(); var trans0 = [0,255,0,.5] /* 0->1 (-0, -1, -4, -6) */ this.t[0].push({ src: 0, type: 'shift', via: 'acc', to: 2 }); this.t[0].push({ src: 1, type: 'shift', via: 'acc', to: 2 }); this.t[0].push({ src: 2, type: 'shrink', via: 'acc', to: 2,mov:0 }); this.t[0].push({ src: 4, type: 'shift', via: 'acc', to: 5 }); this.t[0].push({ src: 5, type: 'shrink', via: 'acc', to: 5,mov:1 }); this.t[0].push({ src: 6, type: 'flip', via: 'acc', to: 5 }); this.t[0].push({src:0,col:trans0,to:2,type:'loop',via:'acc',turns:2}) /* 1->2 (+0, +3, +4, +6, -5)*/ this.t[1].push({ src: 2, type: 'shift', to: 0 }); this.t[1].push({ src: 5, type: 'shift', to: 3 }); this.t[1].push({ src: 2, type: 'shift', to: 2 }); this.t[1].push({ src: 5, type: 'shift', to: 4 }); this.t[1].push({ src: 5, type: 'shift', to: 6 }); this.t[1].push({turns:1,src:2,to:0,type:'loop',col:trans0}) /* 2->3 (-4, +5) */ this.t[2].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[2].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[2].push({ src: 3, type: 'shift', via: 'acc', to: 3 }); this.t[2].push({ src: 4, type: 'shift', via: 'acc', to: 5 }); this.t[2].push({ src: 6, type: 'shift', via: 'acc', to: 6 }); this.t[2].push({src:0,to:5,type:'loop',col:trans0,via:'acc'}) /* 3->4 (-0, -6, +1) */ this.t[3].push({ src: 0, type: 'shift', via: 'acc', to: 1 }); this.t[3].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[3].push({ src: 3, type: 'shift', via: 'acc', to: 3 }); this.t[3].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[3].push({ src: 6, type: 'shift', via: 'acc', to: 5 }); this.t[3].push({via:'acc',to:1,type:'shift',src:5,col:trans0}) /* 4->5 (+0, -2, +6) */ this.t[4].push({ src: 1, type: 'shift', via: 'acc', to: 1 }); this.t[4].push({ src: 2, type: 'shift', via: 'acc', to: 0 }); this.t[4].push({ src: 3, type: 'shift', via: 'acc', to: 3 }); this.t[4].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[4].push({ src: 5, type: 'shift', via: 'acc', to: 6 }); this.t[4].push({src:1,to:6,via:'acc',type:'shift',col:trans0}) /* 5->6 (+4) */ this.t[5].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[5].push({ src: 1, type: 'shift', via: 'acc', to: 1 }); this.t[5].push({ src: 3, type: 'shift', via: 'acc', to: 3 }); this.t[5].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[5].push({ src: 6, type: 'shift', via: 'acc', to: 6 }); this.t[5].push({ src: 6, type: 'shift', via: 'acc', to: 4 }); this.t[5].push({src:6,to:4,type:'loop',col:trans0,turns:2,via:'acc'}) this.t[5].push({src:6,to:3,type:'shift',col:trans0,via:'acc'}) this.t[5].push({src:6,to:6,type:'loop',col:trans0,via:'acc'}) /* 5->0 (+2, +4, -3) */ this.t[50].push({ src: 0, type: 'shift', via: 'acc', to: 1 }); this.t[50].push({ src: 1, type: 'shift', via: 'acc', to: 0 }); this.t[50].push({ src: 3, type: 'shift', via: 'acc', to: 2 }); this.t[50].push({ src: 5, type: 'shift', via: 'acc', to: 4 }); this.t[50].push({ src: 6, type: 'shift', via: 'acc', to: 5 }); this.t[50].push({ src: 3, type: 'shift', via: 'acc', to: 6 }); this.t[50].push({src:6,to:0,type:'loop',via:'acc',col:trans0}) /* 6->7 (-1, -3, -4, -6, +2) */ this.t[6].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[6].push({ src: 1, type: 'shift', via: 'acc', to: 0 }); this.t[6].push({ src: 3, type: 'shift', via: 'acc', to: 2 }); this.t[6].push({ src: 4, type: 'shift', via: 'acc', to: 5 }); this.t[6].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[6].push({ src: 6, type: 'shift', via: 'acc', to: 5 }); this.t[6].push({src:4,to:2,type:'shift',via:'acc',col:trans0}) this.t[6].push({src:6,to:0,type:'shift',via:'acc',col:trans0}) this.t[6].push({src:3,to:5,type:'shift',via:'acc',col:trans0}) /* 7->8 (+1, +3, +4, +6) */ this.t[7].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[7].push({ src: 0, type: 'shift', via: 'acc', to: 1 }); this.t[7].push({ src: 2, type: 'shift', via: 'acc', to: 3 }); this.t[7].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[7].push({ src: 2, type: 'shift', via: 'acc', to: 4 }); this.t[7].push({ src: 5, type: 'shift', via: 'acc', to: 6 }); this.t[7].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[7].push({src:2,to:1,type:'shift',col:trans0,via:'acc'}) this.t[7].push({src:0,to:3,type:'shift',col:trans0,via:'acc'}) this.t[7].push({src:5,to:4,type:'loop',col:trans0,via:'acc'}) this.t[7].push({src:5,to:6,type:'flip',col:trans0,via:'acc'}) /* 8->9 (-4) */ this.t[8].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[8].push({ src: 1, type: 'shift', via: 'acc', to: 1 }); this.t[8].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[8].push({ src: 3, type: 'shift', via: 'acc', to: 3 }); this.t[8].push({ src: 4, type: 'shift', via: 'acc', to: 3 }); this.t[8].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[8].push({ src: 6, type: 'shift', via: 'acc', to: 6 }); /* ghost 8 transitions */ this.t[8].push({src:4,to:3,type:'flip',col:trans0,via:'acc'}) this.t[8].push({src:3,type:'shrink',to:3,col:trans0,via:'acc',mov:0}) this.t[8].push({src:1,to:3,col:trans0,via:'acc',type:'shift'}) this.t[8].push({src:6,to:3,type:'shift',via:'acc',col:trans0}) /* 9->0 (-3, +4) */ this.t[9].push({ src: 0, type: 'shift', via: 'acc', to: 0 }); this.t[9].push({ src: 1, type: 'shift', via: 'acc', to: 1 }); this.t[9].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[9].push({ src: 3, type: 'shift', via: 'acc', to: 4 }); this.t[9].push({ src: 5, type: 'shift', via: 'acc', to: 5 }); this.t[9].push({ src: 6, type: 'shift', via: 'acc', to: 6 }); /* ghost 9 transition */ this.t[9].push({src:3,to:0,type:'shift',col:trans0,via:'acc'}) /* special cases */ /* leading 5->0 (+2, +4, -3) */ this.t[50].push({ src: 3, type: 'shift', to: 4 }); this.t[50].push({ src: 2, type: 'grow', mov: 1 }); /* (noon/midnight under 12hr) 1->nothing (-2, -5) */ this.t[10].push({ src: 2, type: 'shrink', mov: 0 }); this.t[10].push({ src: 5, type: 'shrink', mov: 0 }); /* (noon/midnight under 12hr) 2->1 (-0, -3, -4, -6, +5) */ this.t[21].push({ src: 0, type: 'shift', to: 2 }); this.t[21].push({ src: 3, type: 'shift', to: 2 }); this.t[21].push({ src: 4, type: 'shift', to: 5 }); this.t[21].push({ src: 6, type: 'shift', to: 5 }); this.t[21].push({ src: 2, type: 'shift', to: 2 }); this.t[21].push({src:0,type:'flip',to:2,col:trans0}) /* (midnight under 24hr) 2->nothing (-0, -2, -3, -4, -6) */ this.t[20].push({ src: 0, type: 'shrink', mov: 0 }); this.t[20].push({ src: 2, type: 'shrink', mov: 0 }); this.t[20].push({ src: 3, type: 'shrink', mov: 0 }); this.t[20].push({ src: 4, type: 'shrink', mov: 0 }); this.t[20].push({ src: 6, type: 'shrink', mov: 0 }); /* (midnight under 24hr) 3->0 (-3, +1, +4) */ this.t[30].push({ src: 3, type: 'flip', to: 1 }); this.t[30].push({ src: 3, type: 'flip', to: 4 }); /* (leading hr @ 9:59) nothing -> 1 (+2, +5)*/ this.t[11].push({ src: 5, type: 'grow', mov: 0, t:[.9,.95]}); this.t[11].push({ src: 2, type: 'grow', mov: 0, t:[.95,1]}); }
TO SAVE WORK
:
font name
:
(new or previous)
letters/numbers, no spaces
author username
:
(create now OR recall)
letters/numbers, no spaces
password
:
(create now OR recall)
remember what you type here -
it creates an instant account
(nothing is saved till you hit save)
see previous versions of this font