webgl-3d-animation
Version:
Interactive 3D animation using WebGL showing a 2D predator prey ecology on a grid which is real-time mapped onto the surface of a 3D torus. node.js server side gives access to WAV format files which are rendered using Web Audio API
30 lines (16 loc) • 484 B
JavaScript
var ui_logic_handler = function() {
;
function handleClick(flavor_checkbox, cb) {
webgl_3d_animation.ui_events_entry_point(flavor_checkbox, cb.checked);
}
// function handleClick(flavor_checkbox) {
// webgl_3d_animation.ui_events_entry_point(flavor_checkbox);
// }
function is_checked(given_id) {
return document.getElementById(given_id).checked;
}
return {
handleClick: handleClick,
is_checked : is_checked
};
}(); // ui_logic_handler