HoverColor

altspace/utilities/behaviors. HoverColor

Changes the color of an object when cursor hovers over it.

Constructor

new HoverColor(configopt)

Parameters:
Name Type Attributes Description
config Object <optional>

Optional parameters.

Properties
Name Type Attributes Default Description
event String <optional>
'cursorenter'

Specify the name of event which triggers the color change. Default is 'cursorenter' for a hover effect.

color THREE.Color <optional>
THREE.Color('yellow')

A THREE.Color value that will be applied to the object's material.

Extends

Members

type :string

The string name of this class. This is used for THREE.Object3D#getBehaviorByType.

Overrides:

Methods