Mercurial > laserkard
diff 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 |
line wrap: on
line diff
1.1 --- a/js-lib/buy3.js Tue Jul 27 07:56:22 2010 -0400 1.2 +++ b/js-lib/buy3.js Tue Jul 27 08:08:07 2010 -0400 1.3 @@ -18,11 +18,13 @@ 1.4 return { 1.5 "bold" : { 1.6 "name" :(function (text){ 1.7 - return paper.print(w*0.1,h*0.2,text,helvetica).attr( 1.8 - {"fill" : "#0F0"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.2);}), 1.9 + var x = w*0.1; var y = h*0.2; 1.10 + return paper.print(x,y,text,helvetica).attr( 1.11 + {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);}), 1.12 "email" : (function (text){ 1.13 - return paper.print(w*0.1,h*0.4,text,helveticaI).attr( 1.14 - {"fill" : "red"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.4);})} 1.15 + var x = w*0.1; var y = h*0.4; 1.16 + return paper.print(x,y,text,helveticaI).attr( 1.17 + {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);})} 1.18 }; 1.19 1.20 });