Class: Options

Options(options)

new Options(options)

Options of the canvas
Parameters:
Name Type Description
options Object See the options parameter of the MyThree class.
Source:

Namespaces

raycaster

Methods

(static) findSpriteTextIntersection(scene)

Finds on the Scene a child item of the "Sprite" type and "spriteTextIntersection" name.
Parameters:
Name Type Description
scene THREE.Scene Scene instance.
Source:
Returns:
item of the "Sprite" type and "spriteTextIntersection" name or undefined.

createOrbitControls(camera, renderer, scene)

Create OrbitControls
Parameters:
Name Type Description
camera THREE.PerspectiveCamera PerspectiveCamera. Use the camera key if you want control cameras focus.
renderer THREE.WebGLRenderer THREE.WebGLRenderer.
scene THREE.Scene THREE.Scene.
Source:

restoreSceneController(camera, scene)

Reset Player and restore camera position.
Parameters:
Name Type Description
camera THREE.PerspectiveCamera PerspectiveCamera.
scene THREE.Scene THREE.Scene.
Source:

setPalette(paletteopt)

set the palette key of the options. See color palette.
Parameters:
Name Type Attributes Description
palette ColorPicker.palette <optional>
new palette.
Source:

setW(options)

set the scales.w key of the options
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
scales.w.name string <optional>
"W" axis name.
scales.w.min number <optional>
0 Minimum range of the color palette index.
scales.w.max number <optional>
1 Maximum range of the color palette index.
Source: