comparison js-lib/buy3.js @ 100:595866daadbe laserkard

saving progress.
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Jul 2010 08:08:07 -0400
parents 9649b14f3b38
children 8ed3394e6b73
comparison
equal deleted inserted replaced
99:9649b14f3b38 100:595866daadbe
16 var w = paper.width; 16 var w = paper.width;
17 17
18 return { 18 return {
19 "bold" : { 19 "bold" : {
20 "name" :(function (text){ 20 "name" :(function (text){
21 return paper.print(w*0.1,h*0.2,text,helvetica).attr( 21 var x = w*0.1; var y = h*0.2;
22 {"fill" : "#0F0"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.2);}), 22 return paper.print(x,y,text,helvetica).attr(
23 {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);}),
23 "email" : (function (text){ 24 "email" : (function (text){
24 return paper.print(w*0.1,h*0.4,text,helveticaI).attr( 25 var x = w*0.1; var y = h*0.4;
25 {"fill" : "red"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.4);})} 26 return paper.print(x,y,text,helveticaI).attr(
27 {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);})}
26 }; 28 };
27 29
28 }); 30 });
29 31
30 32