Through Constructor

优质
小牛编辑
123浏览
2023-12-01

When creating a controller for the 3D globe, you can pass the configurations of the globe to the
controller as a constructor parameter as follows:

var configs = {
        color: {
                surface:0xFF0000
        }
};
var globe = new Gio.controller(container, configs);