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 = 8; this.groupPad = 15; this.heightFrac = 0.7; this.widthFrac = 0.7; this.secondsScale = {val:0.4, pos:'middle'}; this.bgColor = [60, 50, 80]; this.baseColor = [ 200, 00, 00 ]; this.partColor = { a:[ 250, 50, 50 ], b:[ 0, 200, 200 ]}; this.secondColor = [ 200, 00, 00 ]; this.colonColors = [ [200, 50, 200] , [0, 200, 200] ]; this.sevenSegment = false; this.baseLineWidth = 0; this.partLineWidth = 4; this.colonRadius = 4; this.beginAniTime = .80; this.endAniTime = 1; this.lineCap='round' this.baseInFront = true; this.pulsate = false; this.disableSlowest = true; var trans0={a:[ 250, 150, 250 ], b:[ 150, 150, 150 ]}; this.t = new Array(); for (var i=0;i<=50;i++) this.t[i] = new Array(); this.t[0].push({ src: 0, type: 'grow', mov: 1 }); this.t[0].push({ src: 0, type: 'shrink', mov: 0}); this.t[0].push({ src: 1, type: 'shrink', mov: 0}); this.t[1].push({ src: 0, to: 0, type: 'shift', col:trans0 }); this.t[1].push({ src: 0, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[2].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[2].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[3].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[3].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[4].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[4].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[4].push({ src: 1, to: 2, type: 'shift', via: 'osc', col:trans0 }); this.t[5].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[5].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[5].push({ src: 2, to: 2, type: 'shift', via: 'osc', col:trans0 }); this.t[6].push({ src: 0, to: 0, type: 'shift', via: 'acc', col:trans0 }); this.t[6].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[6].push({ src: 2, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[7].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[7].push({ src: 0, to: 1, type: 'shift', via: 'osc', col:trans0 }); this.t[7].push({ src: 1, to: 2, type: 'shift', via: 'osc', col:trans0 }); this.t[7].push({ src: 1, to: 3, type: 'shift', via: 'osc', col:trans0 }); this.t[8].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[8].push({ src: 1, to: 1, type: 'shift', via: 'osc', col:trans0 }); this.t[8].push({ src: 2, to: 2, type: 'shift', via: 'osc', col:trans0 }); this.t[8].push({ src: 3, to: 2, type: 'shift', via: 'osc', col:trans0 }); this.t[9].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[9].push({ src: 1, to: 1, type: 'shift', via: 'osc', col:trans0 }); this.t[9].push({ src: 2, to: 1, type: 'shift', via: 'osc', col:trans0 }); /* 5->0 (leading digit) */ this.t[50].push({ src: 0, to: 0, type: 'shift', via: 'acc', col:trans0 }); this.t[50].push({ src: 1, to: 1, type: 'shift', via: 'acc', col:trans0 }); this.t[50].push({ src: 2, to: 1, type: 'shift', via: 'acc', col:trans0 }); /* 1->nothing (e.g., noon to 1 leading hr digit) */ this.t[10].push({ src: 0, type: 'shrink'}); /* 2->1 (e.g., noon to 1, non-leading hr digit) */ this.t[21].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[21].push({ src: 1, to: 0, type: 'shift', via: 'osc', col:trans0 }); /* 2->nothing (midnight under 24 hr time, leading hr digit) */ this.t[20].push({ src: 0, type: 'shrink', mov: 0}); this.t[20].push({ src: 1, type: 'shrink'}); /* 3->0 (midnight under 24 hr time, non-leading hr digit) */ this.t[30].push({ src: 0, to: 0, type: 'shift', via: 'osc', col:trans0 }); this.t[30].push({ src: 1, to: 1, type: 'shift', via: 'osc', col:trans0 }); /* nothing->1 (1 digit hour to 2-digit hr) */ this.t[11].push({ src: 0, type: 'grow'}); }
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