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 = 200; |
x.height = 40; | x.height = 40; | ||
xc.fillStyle = "#ffffff"; | xc.fillStyle = "#ffffff"; | ||
xc.font = "22pt arial"; | xc.font = "22pt arial"; | ||
xc.textBaseline = "top"; | xc.textBaseline = "top"; | ||
- | xc.fillText(" | + | xc.fillText("Relative Fluorescence", 10, 0); |
var xm = new THREE.MeshBasicMaterial({ | var xm = new THREE.MeshBasicMaterial({ | ||
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(200, 40, 2, 2), xm); |
zaxislabel.position.x = -2; | zaxislabel.position.x = -2; | ||
zaxislabel.position.y = 50; | zaxislabel.position.y = 50; |
Revision as of 07:00, 25 September 2011