Extends
Members
- 
    
_composite :String
 - 
    
    
The composite operation type. Can be source-atop|source-in|source-out|source-over|destination-atop|destination-in|destination-out|destination-over|lighter|xor|copy
Default is 'source-over'Type:
- String
 
- Inherited From:
 - Source:
 
 
Methods
- 
    
getBoundingArea()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
The bounding area
- Type
 - Object
 
 - 
    
getComposite()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - String
 
 - 
    
getHeight()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getOpacity()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Float
 
 - 
    
getPivotX()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getPivotY()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getRotation()
 - 
    
    
    
    
    
    
- Inherited From:
 - Overrides:
 - Source:
 
Returns:
- Type
 - Float
 
 - 
    
getScaleX()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getScaleY()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getSrcHeight()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getSrcWidth()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getSrcX()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getSrcY()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getWidth()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getX()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
getY()
 - 
    
    
    
    
    
    
- Inherited From:
 - Source:
 
Returns:
- Type
 - Integer
 
 - 
    
render(context, factor, ticks)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description contextObject The CanvasRenderingContext2D object
factorInteger The 0-1-based model of elapsed time
ticksInteger Total elapsed ticks
- Overrides:
 - Source:
 
 - 
    
setComposite(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The composite value
- Inherited From:
 - Overrides:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setFill(val)
 - 
    
    
[setFill description]
Parameters:
Name Type Description valString The fill color hex, rgb, rgba, etc.
- Source:
 
 - 
    
setHeight(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The height value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setOpacity(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valFloat The opacity value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setPivotX(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valFloat The opacity value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setPivotY(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valFloat The opacity value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setRotation(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The rotation value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setScaleX(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The scaleX value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setScaleY(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The scaleY value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setSrcHeight(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The srcHeight value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setSrcWidth(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The srcWidth value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setSrcX(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The srcX value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setSrcY(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The srcY value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setStroke(val)
 - 
    
    
[setStroke description]
Parameters:
Name Type Description valString The stroke color hex, rgb, rgba, etc.
- Source:
 
 - 
    
setWidth(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The width value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
setY(val)
 - 
    
    
    
    
    
        
Parameters:
Name Type Description valInteger The y value
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite
 
 - 
    
translate(x, y)
 - 
    
    
Add/Subtract current x/y values. Assign any non-number to leave value the same.
Parameters:
Name Type Argument Description xInteger <optional> 
yInteger <optional> 
- Inherited From:
 - Source:
 
Returns:
- Type
 - Sprite