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 = 10; this.heightFrac = 0.7; this.widthFrac = 0.6; this.secondsScale = {val:0.5, pos:'top'}; this.bgColor = [0, 0, 0]; this.baseColor = [0, 255, 0]; this.partColor = { a:[ 0, 255, 0 ], b:[ 0, 255, 0 ]}; this.colonColors = { a:[0, 255, 0], b:[0, 255, 0] }; this.baseLineWidth = 0; this.partLineWidth = 5; this.colonRadius = 3; this.beginAniTime = 0.9; this.endAniTime = 1; this.lineCap = 'round'; this.t = new Array(); for (var i=0;i<=50;i++) this.t[i] = new Array(); this.t =[]; for(var i=0;i<=50;i++){this.t[i] = [];} Half = [0,0.5]; Half2 = [0.5,1]; Third = [0,0.33]; Third2 = [0.34,0.66]; Third3 = [0.67,1]; this.t[0].push({ src: 0, type: 'shrink', mov: 0, t:Half2 }); this.t[0].push({ src: 1, type: 'shrink', mov: 1, t:Half }); this.t[0].push({ src: 2, type: 'shift', to: 2 }); this.t[0].push({ src: 4, type: 'shrink', mov: 0, t:Half }); this.t[0].push({ src: 5, type: 'shift', to: 5 }); this.t[0].push({ src: 6, type: 'shrink', mov: 0, t:Half2 }); this.t[1].push({ src: 0, type: 'grow', mov: 0, t:Half }); this.t[1].push({ src: 2, type: 'shift', to: 2 }); this.t[1].push({ src: 3, type: 'grow', mov: 0, t:Half }); this.t[1].push({ src: 4, type: 'grow', mov: 1, t:Half2 }); this.t[1].push({ src: 5, type: 'shrink', mov: 0, t:Half }); this.t[1].push({ src: 6, type: 'grow', mov: 0, t:Half }); this.t[2].push({ src: 0, type: 'shift', to: 0 }); this.t[2].push({ src: 2, type: 'shift', to: 2 }); this.t[2].push({ src: 3, type: 'shift', to: 3 }); this.t[2].push({ src: 4, type: 'shrink', mov: 1 }); this.t[2].push({ src: 5, type: 'grow', mov: 1 }); this.t[2].push({ src: 6, type: 'shift', to: 6 }); this.t[3].push({ src: 0, type: 'shrink', mov: 0}); this.t[3].push({ src: 1, type: 'grow', mov: 0}); this.t[3].push({ src: 2, type: 'shift', to: 2}); this.t[3].push({ src: 3, type: 'shift', to: 3}); this.t[3].push({ src: 5, type: 'shift', to: 5}); this.t[3].push({ src: 6, type: 'shrink', mov: 0}); this.t[4].push({ src: 0, type: 'grow', mov: 1}); this.t[4].push({ src: 1, type: 'shift', to:1}); this.t[4].push({ src: 2, type: 'shrink', mov: 0}); this.t[4].push({ src: 3, type: 'shift', to: 3}); this.t[4].push({ src: 5, type: 'shift', to: 5}); this.t[4].push({ src: 6, type: 'grow', mov: 0}); this.t[5].push({ src: 0, type: 'shift', to:0}); this.t[5].push({ src: 1, type: 'shift', to: 1}); this.t[5].push({ src: 3, type: 'shift', to: 3}); this.t[5].push({ src: 4, type: 'grow', mov: 1}); this.t[5].push({ src: 5, type: 'shift', to: 5}); this.t[5].push({ src: 6, type: 'shift', to:6}); this.t[6].push({ src: 0, type: 'shift', to:0 }); this.t[6].push({ src: 1, type: 'shrink', mov: 0, t:Half}); this.t[6].push({src:2,type:'grow',mov:0,t:Half}); this.t[6].push({ src: 3, type: 'shrink', mov: 0, t:Half2}); this.t[6].push({ src: 4, type: 'shrink', mov: 1, t:Half}); this.t[6].push({ src: 5, type: 'shift', to:5}); this.t[6].push({ src: 6, type: 'shrink', mov:0, t:Half}); this.t[7].push({ src: 0, type: 'shift', to: 0 }); this.t[7].push({ src: 1, type: 'grow', mov: 1, t:Half}); this.t[7].push({ src: 2, type: 'shift', to: 2 }); this.t[7].push({ src: 3, type: 'grow', mov: 0, t:Half}); this.t[7].push({ src: 4, type: 'grow', mov: 1, t:Half2}); this.t[7].push({ src: 5, type: 'shift', to: 5 }); this.t[7].push({ src: 6, type: 'grow', mov:0, t:Half}); this.t[8].push({ src: 0, type: 'shift', to:0}); this.t[8].push({ src: 1, type: 'shift', to: 1 }); this.t[8].push({ src: 2, type: 'shift', to: 2 }); this.t[8].push({ src: 3, type: 'shift', to: 3 }); this.t[8].push({ src: 4, type: 'shrink', mov: 1 }); this.t[8].push({ src: 5, type: 'shift', to: 5 }); this.t[8].push({ src: 6, type: 'shift', to:6}); this.t[9].push({ src: 0, type: 'shift', to:0}); this.t[9].push({ src: 1, type: 'shift', to: 1 }); this.t[9].push({ src: 2, type: 'shift', to: 2 }); this.t[9].push({ src: 3, type: 'shrink', mov: 0 }); this.t[9].push({ src: 4, type: 'grow', mov: 1 }); this.t[9].push({ src: 5, type: 'shift', to: 5 }); this.t[9].push({ src: 6, type: 'shift', to:6}); this.t[50].push({ src: 0, type: 'shift', to:0}); this.t[50].push({ src: 1, type: 'shift', to: 1}); this.t[50].push({ src: 2, type: 'grow', mov: 0 }); this.t[50].push({ src: 3, type: 'shrink', mov: 0}); this.t[50].push({ src: 4, type: 'grow', mov: 1}); this.t[50].push({ src: 5, type: 'shift', to: 5}); this.t[50].push({ src: 6, type: 'shift', to:6}); //Why am I forced to have this disappear? Why can't I have it display "0" I so chose? this.t[10].push({ src: 2, type:'shrink', mov:0}); this.t[10].push({ src: 5, type: 'shrink', mov:1}); this.t[21].push({ src: 0, type: 'shrink', mov:0, t:Half }); this.t[21].push({ src: 2, type: 'shift', to: 2 }); this.t[21].push({ src: 3, type: 'shrink', mov:0, t:Half2 }); this.t[21].push({ src: 4, type: 'shrink', mov:1, t:Half }); this.t[21].push({ src: 5, type: 'grow', mov: 0, t:Half }); this.t[21].push({ src: 6, type: 'shrink', mov: 0, t:Half }); //How do you even put it into 24-hour mode? The tutorial never mentions what flag to set. this.t[20].push({ src: 0, type: 'shrink', mov: 0, t:Third }); this.t[20].push({ src: 2, type: 'shrink', mov: 0, t:Third2 }); this.t[20].push({ src: 3, type: 'shrink', mov: 0, t:Third3 }); this.t[20].push({ src: 4, type: 'shrink', mov: 1, t:Third2 }); this.t[20].push({ src: 6, type: 'shrink', mov: 1, t:Third }); this.t[30].push({ src: 0, type: 'shift', to: 0 }); this.t[30].push({ src: 1, type: 'grow', mov: 1 }); this.t[30].push({ src: 2, type: 'shift', to: 2 }); this.t[30].push({ src: 3, type: 'shrink', mov: 0 }); this.t[30].push({ src: 4, type: 'grow', mov: 0 }); this.t[30].push({ src: 5, type: 'shift', to: 5 }); this.t[30].push({ src: 6, type: 'shift', to: 6 }); this.t[11].push({ src: 2, type: 'grow', mov: 0}); this.t[11].push({ src: 5, type: 'grow', mov: 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