Class: DepthOfField

DepthOfField

new DepthOfField(strengthopt, qualityopt, trueDistanceopt)

Depth of field is an effect by which objects appear blurrier the further they are from the focus of a camera. The DepthOfField class can mimic this effect in DepthJS. To do so set the Stage3D's depthOfField property to a DepthOfField instance. NOTE: Blurriness in CreateJS is not the best nor easy on the system. Consider using the AlphaDepthOfField class instead.
Parameters:
Name Type Attributes Default Description
strength Number <optional>
100 Shortcut to the strength property.
quality Number <optional>
1 Shortcut to the quality property.
trueDistance Boolean <optional>
true Shortcut to the trueDistance property.
Source:

Members

quality :Number

Sets the quality of the effect.
Type:
  • Number
Default Value:
  • 1
Source:

strength :Number

Sets the strength of the effect.
Type:
  • Number
Default Value:
  • 100
Source:

trueDistance :Boolean

Sets whether the effect utilizes true distance from 0,0,0 (true) or simply the object's z location (false) for the effect.
Type:
  • Boolean
Default Value:
  • true
Source: