Grey background for Mathbox

This commit is contained in:
ha7ilm 2016-08-07 19:27:46 +02:00
parent f45b209485
commit 6f52c2dd2c
1 changed files with 5 additions and 1 deletions

View File

@ -1921,7 +1921,7 @@ function mathbox_init()
}); });
three = mathbox.three; three = mathbox.three;
three.renderer.setClearColor(new THREE.Color(0xFFFFFF), 1.0); three.renderer.setClearColor(new THREE.Color(0x808080), 1.0);
mathbox_container.appendChild((mathbox_element=three.renderer.domElement)); mathbox_container.appendChild((mathbox_element=three.renderer.domElement));
view = mathbox view = mathbox
.set({ .set({
@ -1940,14 +1940,17 @@ function mathbox_init()
view.axis({ view.axis({
axis: 1, axis: 1,
width: 3, width: 3,
color: "#fff",
}); });
view.axis({ view.axis({
axis: 2, axis: 2,
width: 3, width: 3,
color: "#fff",
}); });
view.axis({ view.axis({
axis: 3, axis: 3,
width: 3, width: 3,
color: "#fff",
}); });
view.grid({ view.grid({
@ -1955,6 +1958,7 @@ function mathbox_init()
opacity: 0.5, opacity: 0.5,
axes: [1, 3], axes: [1, 3],
zOrder: 1, zOrder: 1,
color: "#fff",
}); });
var remap = function (v) { return Math.sqrt(.5 + .5 * v); }; var remap = function (v) { return Math.sqrt(.5 + .5 * v); };