wonder.js
Version:
19 lines (14 loc) • 567 B
JavaScript
;
var Caml_array = require("bs-platform/lib/js/caml_array.js");
function getAmbientLightColor(param) {
var sceneRecord = param[/* sceneRecord */0];
return sceneRecord[/* ambientLight */0][/* color */0];
}
function setAmbientLightColor(color, state) {
var newrecord = Caml_array.caml_array_dup(state);
newrecord[/* sceneRecord */0] = /* record */[/* ambientLight : record */[/* color */color]];
return newrecord;
}
exports.getAmbientLightColor = getAmbientLightColor;
exports.setAmbientLightColor = setAmbientLightColor;
/* No side effect */