Component.AutoCull#inCamera

[readonly] inCamera : boolean Checks if the Game Objects bounds intersect with the Game Camera bounds.Returns true if they do, otherwise false if fully outside of the Cameras bounds. Source code: gameobjects/components/AutoCull.js (Line 37)

Component.AutoCull#AutoCull

new AutoCull() The AutoCull Component is responsible for providing methods that check if a Game Object is within the bounds of the World Camera.It is used by the InWorld component. Source code: gameobjects/components/AutoCull.js (Line 13)

Component.Animation#play()

play(name, frameRate, loop, killOnComplete) → {Phaser.Animation} Plays an Animation. The animation should have previously been created via animations.add. If the animation is already playing calling this again won't do anything.If you need to reset an already running animation do so directly on the Animation object itself or via AnimationManager.stop. Parameters Name Type Argument Default Description name string The name of the animation to be played, e.g. "fire", "walk", "jump". Must

Component.Animation#Animation

new Animation() The Animation Component provides a play method, which is a proxy to the AnimationManager.play method. Source code: gameobjects/components/Animation.js (Line 12)

Component.Angle#Angle

new Angle() The Angle Component provides access to an angle property; the rotation of a Game Object in degrees. Source code: gameobjects/components/Angle.js (Line 12)

Color.webToColor()

<static> webToColor(web, out) → {object} Converts a CSS 'web' string into a Phaser Color object. The web string can be in the format 'rgb(r,g,b)' or 'rgba(r,g,b,a)' where r/g/b are in the range [0..255] and a is in the range [0..1]. Parameters Name Type Argument Description web string The color string in CSS 'web' format. out object <optional> An object into which 4 properties will be created: r, g, b and a. If not provided a new object will be created. Returns object

Color.valueToColor()

<static> valueToColor(value, out) → {object} Converts a value - a "hex" string, a "CSS 'web' string", or a number - into red, green, blue, and alpha components. The value can be a string (see hexToColor and webToColor for the supported formats) or a packed integer (see getRGB). An alpha channel is not supported when specifying a hex string. Parameters Name Type Argument Description value string | number The color expressed as a recognized string format or a packed integer. out ob

Color.updateColor()

<static> updateColor(out) → {number} Takes a color object and updates the rgba, color and color32 properties. Parameters Name Type Description out object The color object to update. Returns number - A native color value integer (format: 0xAARRGGBB). Source code: utils/Color.js (Line 465)

Color.unpackPixel()

<static> unpackPixel(rgba, out, hsl, hsv) → {object} Unpacks the r, g, b, a components into the specified color object, or a newobject, for use with Int32Array. If little endian, then ABGR order is used whenunpacking, otherwise, RGBA order is used. The resulting color object has ther, g, b, a properties which are unrelated to endianness. Note that the integer is assumed to be packed in the correct endianness. On little-endianthe format is 0xAABBGGRR and on big-endian the format is 0xRR

Color.toRGBA()

<static> toRGBA(r, g, b, a) → {number} A utility to convert RGBA components to a 32 bit integer in RRGGBBAA format. Parameters Name Type Description r number The red color component, in the range 0 - 255. g number The green color component, in the range 0 - 255. b number The blue color component, in the range 0 - 255. a number The alpha color component, in the range 0 - 255. Returns number - A RGBA-packed 32 bit integer Author: Matt DesLauriers (@mattdesl) Source cod