Home Reference Source
import {Stars} from 'spacekit/src/Stars.js'
public class | source

Stars

Builds a starry background that is accurate for the Earth's position in space.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

get3jsObjects(): THREE.Object

A list of THREE.js objects that are used to compose the skybox.

public

Get the unique ID of this object.

public

init()

Public Constructors

public constructor() source

Params:

NameTypeAttributeDescription
options.minSize Number

The size of the smallest star. Defaults to 0.75

Public Methods

public get3jsObjects(): THREE.Object source

A list of THREE.js objects that are used to compose the skybox.

Return:

THREE.Object

Skybox mesh

public getId(): String source

Get the unique ID of this object.

Return:

String

id

public init() source