Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 476: | Line 476: | ||
var x = document.createElement("canvas"); | var x = document.createElement("canvas"); | ||
var xc = x.getContext("2d"); | var xc = x.getContext("2d"); | ||
- | x.width = | + | x.width = 400; |
x.height = 40; | x.height = 40; | ||
xc.fillStyle = "#ffffff"; | xc.fillStyle = "#ffffff"; | ||
- | xc.font = " | + | xc.font = "20pt arial"; |
xc.textBaseline = "top"; | xc.textBaseline = "top"; | ||
xc.fillText("Relative Fluorescence", 10, 0); | xc.fillText("Relative Fluorescence", 10, 0); | ||
Line 488: | Line 488: | ||
xm.map.needsUpdate = true; | xm.map.needsUpdate = true; | ||
- | zaxislabel = new THREE.Mesh(new THREE.PlaneGeometry( | + | zaxislabel = new THREE.Mesh(new THREE.PlaneGeometry(400, 40, 2, 2), xm); |
zaxislabel.position.x = -2; | zaxislabel.position.x = -2; | ||
zaxislabel.position.y = 50; | zaxislabel.position.y = 50; |
Revision as of 07:02, 25 September 2011