Passing of arguments

Hello everyone,
This is in reference to

I am having trouble being able to pass arguments i.e. color to this api.

Sample code

var viewer = new Cesium.Viewer('cesiumContainer');

viewer.skyAtmosphere = new Cesium.SkyAtmosphere();

Now what is the best way to send a property colours to this object?


If you look at the class declaration for SkyAtmosphere, you see that it takes in an ellipsoid as a parameter:

You can change this so that it also takes an optional color as a parameter.



Does that mean I create a parameter called options,

and that parameter will have two things

  1. Ellipsoid

  2. Color

Just like it is with ?

Yes, you could do it that way