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 = 15; this.groupPad = 15; this.heightFrac = 0.45; this.widthFrac = .5; this.bgColor = [31, 31, 31]; this.baseColor = [ 0, 250, 150 ]; this.partColor = { a:[ 200, 200, 200, 1], b:[ 250, 250, 250, 1]}; this.secondColor = this.baseColor; this.colonColors = [ this.baseColor , this.baseColor ]; this.baseLineWidth = 0; this.partLineWidth = 9; this.colonRadius = 2; this.beginAniTime = 0.5; this.endAniTime = 1; this.lineCap = 'butt'; this.showRightColons = false; this.hoursScale= { val: 1 , pos: 'top' , offset:[1,-.45] }; this.minutesScale= { val: 1 , pos: 'top' , offset:[1,-.45] }; this.secondsScale= { val: .75 , pos: 'top' , offset:[-1,.750] }; this.baseInFront = true; this.pulsate = false; this.sevenSegment = false; this.defaultTrans = { type:'flip', turns: 0, via:'lin'} this.lineCap = 'round'; this.connected = false; this.ampmShow = true; var trans0={a:[ 200, 200, 200, .25], b:[ 150, 250, 150, .5 ]}; this.t = new Array(); for (var i=0;i<=50;i++) this.t[i] = new Array(); this.t[0].push({ src: 0, type: 'shift', mov:0, via: 'occ', to: 0 }); this.t[0].push({ src: 1, type: 'flip', mov:1, via: 'occ', to: 0 }); this.t[0].push({ src: 1, type: 'loop', mov:1, via: 'occ', to: 0, col:trans0, turns:0 }); this.t[1].push({ src: 0, type: 'shift', mov:1, via: 'acc', to: 0 }); this.t[1].push({ src: 0, type: 'flip', mov:0, via: 'acc', to: 1}); this.t[1].push({ src: 0, type: 'shift', mov:0, via: 'acc', to: 2 }); this.t[1].push({ src: 0, type: 'loop', mov:0, via: 'acc', to: 2, col:trans0, turns:0 }); this.t[2].push({ src: 0, type: 'flip', via: 'occ', to: 1 }); this.t[2].push({ src: 1, type: 'flip', via: 'occ', to: 0 }); this.t[2].push({ src: 2, type: 'shrink', via: 'occ', to: 0 }); this.t[2].push({ src: 2, type: 'shrink', via: 'occ', to: 0 }); this.t[2].push({ src: 2, type: 'loop', via: 'occ', to: 1, col:trans0, turns:1 }); this.t[3].push({ src: 1, type: 'flip', mov:0, to: 1 }); this.t[3].push({ src: 0, type: 'shift', mov:1, via: 'lin', to: 0 }); this.t[3].push({ src: 0, type: 'flip', via: 'lin', to: 2 }); this.t[3].push({ src: 1, type: 'loop', via: 'lin', to: 2, col:trans0, turns:0 }); this.t[4].push({ src: 0, type: 'shift', to: 0 }); this.t[4].push({ src: 1, type: 'shift', to: 1 }); this.t[4].push({ src: 0, type: 'shift', to: 0 }); this.t[4].push({ src: 2, type: 'shift', via: 'lin', to: 2 }); this.t[4].push({ src: 2, type: 'flip', via: 'lin', to: 3 }); this.t[4].push({ src: 2, type: 'loop', via: 'lin', to: 3 , col:trans0, turns:0}); this.t[5].push({ src: 1, type: 'shrink',to:0, mov:0,t:[0,1]}); this.t[5].push({ src: 3, type: 'flip', to: 1 }); this.t[5].push({ src: 2, type: 'flip', to: 2 }); this.t[5].push({ src: 0, type: 'shift', to: 0 }); this.t[5].push({ src: 3, type: 'loop', to: 0, col:trans0 }); this.t[6].push({ src: 0, type: 'shift',to:0, via: 'accc', mov:0,t:[0,1]}); this.t[6].push({ src: 1, type: 'shift', to: 1, via: 'accc' , t:[0,1]}); this.t[6].push({ src: 2, type: 'flip', to: 1, via: 'accc' , t:[0,1]}); this.t[6].push({ src: 0, type: 'loop', to: 1, via: 'accc' , t:[0,1], col:trans0, turns:-1}); this.t[7].push({ src: 0, type: 'flip',to:0, via: 'lin', mov:0,t:[0,1]}); this.t[7].push({ src: 1, type: 'shift', to: 2, via: 'lin' , t:[0,1]}); this.t[7].push({ src: 1, type: 'flip', to: 3, via: 'lin' , t:[0,1]}); this.t[7].push({ src: 0, type: 'shift', to: 1, via: 'lin' , t:[0,1]}); this.t[7].push({ src: 1, type: 'loop', to: 2, via: 'lin' , t:[0,1], col:trans0, turns:1}); this.t[8].push({ src: 0, type: 'shift', to: 2, via: 'lin' , t:[0,1]}); this.t[8].push({ src: 1, type: 'shift', to: 1, via: 'lin' , t:[0,1]}); this.t[8].push({ src: 2, type: 'flip', to: 0, via: 'lin' , t:[0,1]}); this.t[8].push({ src: 3, type: 'shrink', to: 0, via: 'lin' , t:[0,1]}); this.t[8].push({ src: 2, type: 'loop', to: 0, via: 'lin' , t:[0,1], col:trans0, turns:1}); this.t[9].push({ src: 0, type: 'shift', to: 1, via: 'lin' , t:[0,1]}); this.t[9].push({ src: 1, type: 'shift', to: 0, via: 'lin' , t:[0,1]}); this.t[9].push({ src: 2, type: 'shift', to: 1, via: 'lin' , t:[0,1]}); this.t[9].push({ src: 0, type: 'loop', to: 1, via: 'lin' , t:[0,1],col:trans0, turns:1}); this.strokes = this.strokes = [[[[300,100],[100,100],[100,495.6091065491803],[300,495.6091065491803]],[[300,495.6091065491803],[500,495.6091065491803],[500,100],[497.030029296875,535.6000022888184]]],[[[292.030029296875,426.60000228881836],[490.030029296875,179.60000228881836],[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],[462.030029296875,290.60000228881836],[496.030029296875,179.60000228881836],[203.030029296875,116.60000228881836]]],[[[210.76923076923077,109.57118806167372],[407.6923076923077,87.23841591776838],[506.1538461538462,192.52148459617925],[210.76923076923077,275.4717811306848]],[[551.030029296875,397.60000228881836],[256.030029296875,243.60000228881836],[517.030029296875,392.60000228881836],[367.030029296875,306.60000228881836]]],[[[207.69230769230768,112.76158408223162],[140,342.47009756240083],[306.1538461538462,307.37574133626384],[398.46153846153845,300.99494929514804]],[[187.030029296875,458.60000228881836],[592.030029296875,523.6000022888184],[415.030029296875,203.60000228881836],[395.38461538461535,495.6091065491803]]],[[[401.53846153846154,100],[300,100],[300,100],[213.84615384615384,100]],[[454.030029296875,463.60000228881836],[127.6923076923077,447.7531662408117],[357.030029296875,343.60000228881836],[404.61538461538464,406.2780179735589]],[[260.030029296875,491.60000228881836],[413.84615384615386,533.8938587958751],[201.53846153846155,524.3226707342014],[195.3846153846154,419.0396020557905]]],[[[501.030029296875,586.6000022888184],[158.46153846153845,74.47683183553675],[56.92307692307692,463.7051463436012],[300,495.6091065491803]],[[300,495.6091065491803],[444.61538461538464,495.6091065491803],[447.69230769230773,285.0429691923585],[428.030029296875,513.6000022888184]],[[264.030029296875,124.60000228881836],[235.3846153846154,307.37574133626384],[192.30769230769232,339.2797015418429],[176.92307692307693,409.4684139941168]]],[[[183.0769230769231,100],[300,100],[300,100],[108.030029296875,124.60000228881836]],[[437.030029296875,558.6000022888184],[367.69230769230773,166.998316431716],[333.84615384615386,230.8062368428741],[183.0769230769231,495.6091065491803]]],[[[330.7692307692308,307.37574133626384],[278.46153846153845,278.6621771512427],[121.53846153846153,115.95198010278952],[303.0769230769231,106.38079204111581]],[[333.84615384615386,482.84752246694864],[395.38461538461535,444.5627702202538],[410.7692307692308,367.993265726864],[475.030029296875,568.6000022888184]]],[[[223.0769230769231,450.9435622613696],[450.7692307692308,645.5577195154018],[81.030029296875,176.60000228881836],[361.53846153846154,106.38079204111581]],[[312.3076923076923,316.94692939793753],[91.030029296875,276.60000228881836],[68.030029296875,455.60000228881836],[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