![]() ![]() OnRefreshLocation: callback function which allows you to define what to do when a location is refreshed (it moves) OnShowLocation: callback function which allows you to define what to do when a location becomes visible (was behind the planet and is now in front of it) location: location (coming from locations option).OnInitLocation: callback function which allows you to define what to do when the locations are initialized PixelRadiusMultiplier: (TEMPORARY) used by the getSphereRadiusInPixel (see the functions) LocationsElement: Dom elements where the locations are drawnįlightsCanvasPosition: position of the flight canvas (can be use if you have some gap between your planet and your flights Each position must have a key, an alpha and delta position (or x and y if you want to display a static location).Īny additional key can be reached via callbacks functionsįlightsCanvas: Dom element which is a canvas and where the flights and paths are drawnĭragElement: Dom element where we catch the mouse drag.Locations: locations to display on the planet: The code can always be cleaner, more optimized.ĭefaultSpeed: default spinning speed of the planetīackToDefaultTime: time (in ms) to return by to default speed when planet is dragged.I will soon post a tutorial on how to do it, but what could be awesome is to generate it on canvas, and defining light angle and intensity. For the moment, glows and shadows are designed on photoshop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |