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 = 10; this.groupPad = 15; this.heightFrac = 0.86; this.widthFrac = 1.25; this.lineCap = 'round'; this.bgColor = [654, 22, 220]; this.baseColor = [255, 140, 0]; this.partColor = [255, 250, 0]; this.secondColor = [40, 200, 256]; this.colonColors = { a:this.baseColor , b:this.partColor }; this.baseLineWidth = 12; this.partLineWidth = 5; this.colonRadius = [ 100, 3 ]; this.beginAniTime = .5; this.endAniTime = 1.0; this.lineGap = .5 this.baseInFront = false; this.pulsate = false; this.disableSlowest = true; this.t = new Array(); for (var i=0;i<=50;i++) this.t[i] = new Array(); /* 0->1 (-0, -1, -4, -6) */ this.t[0].push({ src: 2, type: 'grow', mov: 0, t:[.75,1]}); this.t[0].push({ src: 5, type: 'grow', mov: 0, t:[.5,.75]}); this.t[0].push({ src: 6, type: 'loop', turns: 2, to: 2, t:[0, 0.75] }); /* 1->2 (+0, +3, +4, +6, -5)*/ this.t[1].push({ src: 6, type: 'loop', to: 0, t:[0, 0.75] }); this.t[1].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[1].push({ src: 6, type: 'loop', to: 6, t:[0.5, .75] }); this.t[1].push({ src: 2, type: 'grow', mov: 0, t:[0.45, .75] }); this.t[1].push({ src: 4, type: 'grow', mov: 0, t:[0.5, .75] }); /* 2->3 (-4, +5)*/ this.t[2].push({ src: 6, type: 'loop', to: 0, t:[0, 0.5] }); this.t[2].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[2].push({ src: 6, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[2].push({ src: 2, type: 'grow', mov: 0, t:[0.25, .75] }); this.t[2].push({ src: 5, type: 'grow', mov: 0, t:[0.5, .75] }); /* 3->4 (-0, -6, +1) */ this.t[3].push({ src: 6, type: 'loop', to: 3, t:[0.25, .5] }); this.t[3].push({ src: 2, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[3].push({ src: 5, type: 'grow', mov: 0, t:[0.25, .5] }); this.t[3].push({ src: 1, type: 'grow', mov: 0, t:[0.5, .75] }); /* 4->5 (+0, -2, +6) */ this.t[4].push({ src: 6, type: 'loop', to: 0, t:[.25 , .75] }); this.t[4].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[4].push({ src: 5, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[4].push({ src: 1, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[4].push({ src: 6, type: 'grow', mov: 0, t:[0.5, .75] }); /* 5->6 (+4) */ this.t[5].push({ src: 6, type: 'loop', to: 0, t:[0 , .5] }); this.t[5].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[5].push({ src: 5, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[5].push({ src: 1, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[5].push({ src: 4, type: 'grow', mov: 0, t:[0.5, .75] }); this.t[5].push({ src: 6, type: 'grow', mov: 0, t:[0.5, .75] }); /* 6->7 (-1, -3, -4, -6, +2) */ this.t[6].push({ src: 6, type: 'loop', to: 0, t:[0.25, .75] }); this.t[6].push({ src: 5, type: 'grow', mov: 0, t:[0.25, .5] }); this.t[6].push({ src: 2, type: 'grow', mov: 0, t:[0.5, .75] }); /* 7->8 (+1, +3, +4, +6) */ this.t[7].push({ src: 6, type: 'loop', to: 0, t:[0.25, .75] }); this.t[7].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[7].push({ src: 6, type: 'inflate', t:[0.5, .75] }); this.t[7].push({ src: 4, type: 'grow', mov:0, t:[0.25, .5] }); this.t[7].push({ src: 5, type: 'grow', mov:0, t:[0.25, .5] }); this.t[7].push({ src: 1, type: 'grow', mov:0, t:[0.5, .75] }); this.t[7].push({ src: 2, type: 'grow', mov:0, t:[0.5, .75] }); /* 8->9 (-4) */ this.t[8].push({ src: 6, type: 'loop', to: 0, t:[0.25, .75] }); this.t[8].push({ src: 6, type: 'loop', to: 3, t:[0.5, .75] }); this.t[8].push({ src: 6, type: 'inflate', t:[0.5, .75] }); this.t[8].push({ src: 5, type: 'grow', mov:0, t:[0.25, .5] }); this.t[8].push({ src: 1, type: 'grow', mov:0, t:[0.5, .75] }); this.t[8].push({ src: 2, type: 'grow', mov:0, t:[0.5, .75] }); /* 9->0 (-3, +4) */ this.t[9].push({ src: 6, type: 'loop', to: 0, t:[0.25, .75] }); this.t[9].push({ src: 6, type: 'inflate', t:[0.5, .75] }); this.t[9].push({ src: 4, type: 'grow', mov:0, t:[0.25, .5] }); this.t[9].push({ src: 5, type: 'grow', mov:0, t:[0.25, .5] }); this.t[9].push({ src: 1, type: 'grow', mov:0, t:[0.5, .75] }); this.t[9].push({ src: 2, type: 'grow', mov:0, t:[0.5, .75] }); this.t[9].push({ src: 0, type: 'grow', mov:0, t:[0.5, .75] }); /* special cases */ /* leading 5->0 (+2, +4, -3) */ this.t[50].push({ src: 2, type: 'inflate', t:[.5, 1] }); this.t[50].push({ src: 4, type: 'inflate', t:[0, .5] }); this.t[50].push({ src: 3, type: 'deflate' }); this.t[50].push({ src: 0, type: 'shift', to: 6}); this.t[50].push({ src: 1, type: 'shift', to: 1}); this.t[50].push({ src: 5, type: 'shift', to: 5}); this.t[50].push({ src: 6, type: 'loop', to: 0}); /* (noon/midnight under 12hr) 1->nothing (-2, -5) */ this.t[10].push({ src: 2, type: 'deflate' }); this.t[10].push({ src: 5, type: 'deflate' }); /* (noon/midnight under 12hr) 2->1 (-0, -3, -4, -6, +5) */ this.t[21].push({ src: 0, type: 'deflate' }); this.t[21].push({ src: 3, type: 'deflate' }); this.t[21].push({ src: 4, type: 'deflate' }); this.t[21].push({ src: 6, type: 'deflate' }); this.t[21].push({ src: 5, type: 'inflate' }); this.t[21].push({ src: 2, type: 'shift', to: 2}); /* (midnight under 24hr) 2->nothing (-0, -2, -3, -4, -6) */ this.t[20].push({ src: 0, type: 'deflate' }); this.t[20].push({ src: 2, type: 'deflate' }); this.t[20].push({ src: 3, type: 'deflate' }); this.t[20].push({ src: 4, type: 'deflate' }); this.t[20].push({ src: 6, type: 'deflate' }); /* (midnight under 24hr) 3->0 (-3, +1, +4) */ this.t[30].push({ src: 1, type: 'inflate' }); this.t[30].push({ src: 4, type: 'inflate' }); this.t[30].push({ src: 3, type: 'deflate' }); this.t[30].push({ src: 0, type: 'shift', to: 0}); this.t[30].push({ src: 2, type: 'shift', to: 2}); this.t[30].push({ src: 5, type: 'shift', to: 5}); this.t[30].push({ src: 6, type: 'shift', to: 6}); /* (leading hr @ 9:59) nothing -> 1 (+2, +5)*/ this.t[11].push({ src: 2, type: 'inflate' , t:[.95,1]}); this.t[11].push({ src: 5, type: 'inflate' , 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