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 = 4; this.groupPad = 12; this.heightFrac = 0.9; this.widthFrac = 0.9; this.baseColor = [0, 250, 228]; this.partColor = [0, 250, 228]; this.secondColor = [0, 238, 228]; this.colonColors = [ [0, 250, 228] , [0, 100, 100] ]; this.baseLineWidth = 12; this.partLineWidth = 6; this.colonRadius = 4; this.beginAniTime = 0; this.endAniTime = 1.0; 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: 'shrink', mov: 0, t:[0,.1] }); this.t[0].push({ src: 5, type: 'shrink', mov: 0, t:[.1,.2] }); this.t[0].push({ src: 6, type: 'shrink', mov: 1, t:[.2,.3] }); this.t[0].push({ src: 4, type: 'shrink', mov: 1, t:[.3, .4] }); this.t[0].push({ src: 1, type: 'shrink', mov: 1, t:[.4, .5] }); this.t[0].push({ src: 0, type: 'shrink', mov: 0, t:[.5, .6] }); this.t[0].push({ src: 2, type: 'grow', mov: 1, t:[.6, .65] }); this.t[0].push({ src: 5, type: 'grow', mov: 1, t:[.65, .7] }); /* 1->2 (+0, +3, +4, +6, -5)*/ this.t[1].push({ src: 2, type: 'shrink', mov: 0, t:[0, .1] }); this.t[1].push({ src: 5, type: 'shrink', mov: 0, t:[.1, .2] }); this.t[1].push({ src: 6, type: 'grow', mov: 0, t:[.2,.25] }); this.t[1].push({ src: 4, type: 'grow', mov: 0, t:[.25,.3] }); this.t[1].push({ src: 3, type: 'grow', mov: 1, t:[.35,.4] }); this.t[1].push({ src: 2, type: 'grow', mov: 0, t:[.4,.45] }); this.t[1].push({ src: 0, type: 'grow', mov: 0, t:[.45,.5] }); /* 2->3 (-4, +5) */ this.t[2].push({ src: 0, type: 'shrink', mov: 0, t:[0,.125] }); this.t[2].push({ src: 2, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[2].push({ src: 3, type: 'shrink', mov: 1, t:[.25,.375] }); this.t[2].push({ src: 4, type: 'shrink', mov: 0, t:[.375,.4] }); this.t[2].push({ src: 6, type: 'shrink', mov: 0, t:[.4,.5] }); this.t[2].push({ src: 0, type: 'grow', mov: 1, t:[.5,.55] }); this.t[2].push({ src: 2, type: 'grow', mov: 1, t:[.5, .6] }); this.t[2].push({ src: 3, type: 'grow', mov: 0, t:[.6,.65] }); this.t[2].push({ src: 5, type: 'grow', mov: 1, t:[.75, .8] }); this.t[2].push({ src: 6, type: 'grow', mov: 0, t:[.8,.85] }); /* 3->4 (-0, -6, +1) */ this.t[3].push({ src: 6, type: 'shrink', mov: 1, t:[0,.125] }); this.t[3].push({ src: 5, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[3].push({ src: 3, type: 'shrink', mov: 1, t:[.25,.275] }); this.t[3].push({ src: 2, type: 'shrink', mov: 1, t:[.3,.35] }); this.t[3].push({ src: 0, type: 'shrink', mov: 1, t:[.35,.5] }); this.t[3].push({ src: 1, type: 'grow', mov: 1, t:[.5,.55] }); this.t[3].push({ src: 3, type: 'grow', mov: 1, t:[.55, .6] }); this.t[3].push({ src: 2, type: 'grow', mov: 1, t:[.6,.65] }); this.t[3].push({ src: 5, type: 'grow', mov: 1, t:[.65,.7] }); /* 4->5 (+0, -2, +6) */ this.t[4].push({ src: 1, type: 'shrink', mov: 0, t:[0,.25] }); this.t[4].push({ src: 2, type: 'shrink', mov: 0, t:[0,.25] }); this.t[4].push({ src: 3, type: 'shrink', mov: 0, t:[.25,.35] }); this.t[4].push({ src: 5, type: 'shrink', mov: 0, t:[.35,.5] }); this.t[4].push({ src: 0, type: 'grow', mov: 0, t:[.5, .55] }); this.t[4].push({ src: 1, type: 'grow', mov: 1, t:[.55, .6] }); this.t[4].push({ src: 3, type: 'grow', mov: 1, t:[.6, .65] }); this.t[4].push({ src: 5, type: 'grow', mov: 1, t:[.65, .7] }); this.t[4].push({ src: 6, type: 'grow', mov: 0, t:[.7, .75] }); /* 5->6 (+4) */ this.t[5].push({ src: 0, type: 'shrink', mov: 1, t:[0,.125] }); this.t[5].push({ src: 1, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[5].push({ src: 3, type: 'shrink', mov: 0, t:[.25,.375] }); this.t[5].push({ src: 5, type: 'shrink', mov: 0, t:[.375,.4] }); this.t[5].push({ src: 6, type: 'shrink', mov: 1, t:[.4,.5] }); this.t[5].push({ src: 0, type: 'grow', mov: 0, t:[.5,.55] }); this.t[5].push({ src: 1, type: 'grow', mov: 1, t:[.55, .6] }); this.t[5].push({ src: 4, type: 'grow', mov: 1, t:[.6,.65] }); this.t[5].push({ src: 6, type: 'grow', mov: 1, t:[.65, .7] }); this.t[5].push({ src: 5, type: 'grow', mov: 0, t:[.75,.8] }); this.t[5].push({ src: 3, type: 'grow', mov: 0, t:[.8,.85] }); /* 6->7 (-1, -3, -4, -6, +2) */ this.t[6].push({ src: 0, type: 'shrink', mov: 1, t:[0,.125] }); this.t[6].push({ src: 1, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[6].push({ src: 4, type: 'shrink', mov: 0, t:[.25,.3] }); this.t[6].push({ src: 3, type: 'shrink', mov: 0, t:[.39,.42] }); this.t[6].push({ src: 5, type: 'shrink', mov: 0, t:[.42,.45] }); this.t[6].push({ src: 6, type: 'shrink', mov: 1, t:[.45,.5] }); this.t[6].push({ src: 0, type: 'grow', mov: 1, t:[.5,.55] }); this.t[6].push({ src: 2, type: 'grow', mov: 1, t:[.55, .6] }); this.t[6].push({ src: 5, type: 'grow', mov: 1, t:[.6,.65] }); /* 7->8 (+1, +3, +4, +6) */ this.t[7].push({ src: 0, type: 'shrink', mov: 1, t:[0,.125] }); this.t[7].push({ src: 2, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[7].push({ src: 5, type: 'shrink', mov: 0, t:[.25,.3] }); this.t[7].push({ src: 0, type: 'grow', mov: 0, t:[.3,.35] }); this.t[7].push({ src: 1, type: 'grow', mov: 1, t:[.35, .4] }); this.t[7].push({ src: 3, type: 'grow', mov: 1, t:[.4, .45] }); this.t[7].push({ src: 5, type: 'grow', mov: 1, t:[.45, .5] }); this.t[7].push({ src: 6, type: 'grow', mov: 0, t:[.5, .55] }); this.t[7].push({ src: 4, type: 'grow', mov: 0, t:[.55, .6] }); this.t[7].push({ src: 2, type: 'grow', mov: 0, t:[.65, .7] }); /* 8->9 (-4) */ this.t[8].push({ src: 0, type: 'shrink', mov: 1, t:[0,.125] }); this.t[8].push({ src: 1, type: 'shrink', mov: 0, t:[.125,.25] }); this.t[8].push({ src: 3, type: 'shrink', mov: 0, t:[.25,.375] }); this.t[8].push({ src: 5, type: 'shrink', mov: 0, t:[.375,.4] }); this.t[8].push({ src: 6, type: 'shrink', mov: 1, t:[.4,.5] }); this.t[8].push({ src: 4, type: 'shrink', mov: 1, t:[.5,.55] }); this.t[8].push({ src: 2, type: 'shrink', mov: 1, t:[.55,.6] }); this.t[8].push({ src: 2, type: 'grow', mov: 0, t:[.65, .66] }); this.t[8].push({ src: 0, type: 'grow', mov: 0, t:[.66, .67] }); this.t[8].push({ src: 1, type: 'grow', mov: 1, t:[.67,.68] }); this.t[8].push({ src: 3, type: 'grow', mov: 1, t:[.68, .69] }); this.t[8].push({ src: 5, type: 'grow', mov: 1, t:[.69,.70] }); this.t[8].push({ src: 6, type: 'grow', mov: 0, t:[.70, .75] }); /* 9->0 (-3, +4) */ this.t[9].push({ src: 2, type: 'shrink', mov: 1, t:[0,.125] }); this.t[9].push({ src: 0, type: 'shrink', mov: 1, t:[.125,.25] }); this.t[9].push({ src: 1, type: 'shrink', mov: 0, t:[.25,.375] }); this.t[9].push({ src: 3, type: 'shrink', mov: 0, t:[.375,.4] }); this.t[9].push({ src: 5, type: 'shrink', mov: 0, t:[.4,.5] }); this.t[9].push({ src: 6, type: 'shrink', mov: 1, t:[.5,.55] }); this.t[9].push({ src: 0, type: 'grow', mov: 0, t:[.65, .7] }); this.t[9].push({ src: 1, type: 'grow', mov: 0, t:[.7, .75] }); this.t[9].push({ src: 4, type: 'grow', mov: 1, t:[.75,.775] }); this.t[9].push({ src: 6, type: 'grow', mov: 1, t:[.775, .8] }); this.t[9].push({ src: 5, type: 'grow', mov: 1, t:[.8,.825] }); this.t[9].push({ src: 2, type: 'grow', mov: 0, t:[.825,.85] }); /* special cases */ /* leading 5->0 (+2, +4, -3) */ this.t[50].push({ src: 0, type: 'flip', via: 'acc', to: 0 }); this.t[50].push({ src: 1, type: 'flip', via: 'acc', to: 1 }); this.t[50].push({ src: 3, type: 'shift', via: 'acc', to: 2 }); this.t[50].push({ src: 5, type: 'flip', via: 'acc', to: 4 }); this.t[50].push({ src: 5, type: 'flip', via: 'acc', to: 5 }); this.t[50].push({ src: 6, type: 'shift', via: 'acc', to: 6 }); /* (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: 1 }); /* (noon/midnight under 12hr) 2->1 (-0, -3, -4, -6, +5) */ this.t[21].push({ src: 0, type: 'flip', via: 'acc', to: 2 }); this.t[21].push({ src: 2, type: 'shift', via: 'acc', to: 2 }); this.t[21].push({ src: 3, type: 'flip', via: 'acc', to: 5 }); this.t[21].push({ src: 4, type: 'shift', via: 'acc', to: 5 }); this.t[21].push({ src: 6, type: 'flip', via: 'acc', to: 5 }); /* (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: 1 }); this.t[20].push({ src: 3, type: 'shrink', mov: 1 }); this.t[20].push({ src: 4, type: 'shrink', mov: 1 }); this.t[20].push({ src: 6, type: 'shrink', mov: 1 }); /* (midnight under 24hr) 3->0 (-3, +1, +4) */ this.t[30].push({ src: 0, type: 'flip', via: 'acc', to: 0 }); this.t[30].push({ src: 2, type: 'flip', via: 'acc', to: 1 }); this.t[30].push({ src: 3, type: 'shift', via: 'acc', to: 2 }); this.t[30].push({ src: 5, type: 'flip', via: 'acc', to: 4 }); this.t[30].push({ src: 5, type: 'shift', via: 'acc', to: 6 }); this.t[30].push({ src: 6, type: 'shift', via: 'acc', to: 5 }); /* (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]}); this.strokes = [[[[293.33331298828125,181.22222089767456],[100,100],[100,495.6091065491803],[308.33331298828125,495.66666412353516]],[[300,495.6091065491803],[500,495.6091065491803],[500,100],[291.33331298828125,180.66666412353516]],[[240.08331298828125,231.41666412353516],[316.08331298828125,224.41666412353516],[226.08331298828125,362.41666412353516],[231.08331298828125,232.41666412353516]],[[360.33331298828125,232.66666412353516],[299.33331298828125,236.66666412353516],[368.33331298828125,355.66666412353516],[366.33331298828125,231.66666412353516]],[[241.33331298828125,172.66666412353516],[113.33331298828125,331.66666412353516],[300,366.66666666666663],[158.33331298828125,355.66666412353516]],[[362.33331298828125,175.66666412353516],[448.33331298828125,272.66666412353516],[300,366.66666666666663],[440.33331298828125,321.66666412353516]],[[228.58331298828125,373.72222089767456],[262.58331298828125,419.72222089767456],[284.33331298828125,486.22222089767456],[413.58331298828125,368.72222089767456]],[[305.33331298828125,433.22222089767456],[300,233.33333333333331],[300,366.66666666666663],[304.33331298828125,433.22222089767456]],[[301.33331298828125,332.22222089767456],[211.33331298828125,279.22222089767456],[391.33331298828125,272.22222089767456],[304.33331298828125,332.22222089767456]]],[[[300,100],[300,231.86970218306007],[300,363.73940436612014],[300,495.6091065491803]]],[[[198.46153846153845,112.76158408223162],[604.6153846153846,55.334455712189325],[300,363.73940436612014],[186.15384615384616,495.6091065491803]],[[186.15384615384616,495.6091065491803],[223.0769230769231,495.6091065491803],[263.0769230769231,495.6091065491803],[423.0769230769231,495.6091065491803]]],[[[210.76923076923077,109.57118806167372],[407.6923076923077,87.23841591776838],[506.1538461538462,192.52148459617925],[210.76923076923077,275.4717811306848]],[[210.76923076923077,275.4717811306848],[460,256.32940500733736],[447.69230769230774,537.084254816433],[210.76923076923077,495.6091065491803]]],[[[207.69230769230768,112.76158408223162],[140,342.47009756240084],[306.1538461538462,307.37574133626384],[398.46153846153845,300.99494929514805]],[[395.38461538461536,100],[395.38461538461536,231.86970218306007],[395.38461538461536,363.73940436612014],[395.38461538461536,495.6091065491803]]],[[[401.53846153846155,100],[300,100],[300,100],[213.84615384615384,100]],[[216.9230769230769,103.1903960205579],[127.6923076923077,447.7531662408117],[404.61538461538464,141.47514826725276],[404.61538461538464,406.2780179735589]],[[404.61538461538464,406.2780179735589],[413.84615384615387,533.8938587958751],[201.53846153846155,524.3226707342014],[195.3846153846154,419.0396020557905]]],[[[312.3076923076923,106.38079204111581],[158.46153846153845,74.47683183553676],[56.92307692307692,463.7051463436012],[300,495.6091065491803]],[[300,495.6091065491803],[444.61538461538464,495.6091065491803],[447.69230769230774,285.0429691923585],[300,297.80455327459015]],[[300,297.80455327459015],[235.3846153846154,307.37574133626384],[192.30769230769232,339.2797015418429],[176.92307692307693,409.4684139941168]]],[[[183.0769230769231,100],[300,100],[300,100],[401.53846153846155,100]],[[401.53846153846155,100],[367.69230769230774,166.998316431716],[333.84615384615387,230.8062368428741],[183.0769230769231,495.6091065491803]]],[[[330.7692307692308,307.37574133626384],[278.46153846153845,278.6621771512427],[121.53846153846153,115.95198010278952],[303.0769230769231,106.38079204111581]],[[303.0769230769231,106.38079204111581],[503.0769230769231,115.95198010278952],[263.0769230769231,259.51980102789526],[235.3846153846154,316.94692939793754]],[[237.69230769230768,313.7565333773797],[130,412.6588100146747],[260,540.274650836991],[333.84615384615387,482.84752246694865]],[[333.84615384615387,482.84752246694865],[395.38461538461536,444.5627702202538],[410.7692307692308,367.993265726864],[330.7692307692308,307.37574133626384]]],[[[223.0769230769231,450.9435622613696],[450.7692307692308,645.5577195154018],[506.1538461538462,144.6655442878107],[361.53846153846155,106.38079204111581]],[[361.53846153846155,106.38079204111581],[173.84615384615384,84.04801989721048],[149.23076923076923,326.5181174596113],[315.38461538461536,316.94692939793754]],[[312.3076923076923,316.94692939793754],[386.1538461538462,316.94692939793754],[447.69230769230774,256.32940500733736],[435.3846153846154,218.0446527606425]]]]; }
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