-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs from sprite trimming, new blur effect, texture defaults (#136)
- Loading branch information
Showing
9 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
markdown/api/type/SpriteObject/useFrameForAnchors.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# object:useFrameForAnchors() | ||
|
||
> --------------------- ------------------------------------------------------------------------------------------ | ||
> __Type__ [Function][api.type.Function] | ||
> __Object__ [SpriteObject][api.type.SpriteObject] | ||
> __Library__ [display.*][api.library.display] | ||
> __Return value__ none | ||
> __Revision__ [REVISION_LABEL](REVISION_URL) | ||
> __Keywords__ sprite, useFrameForAnchors, anchor | ||
> __See also__ [display.newSprite()][api.library.display.newSprite] | ||
> --------------------- ------------------------------------------------------------------------------------------ | ||
## Overview | ||
|
||
Sets a frame in the currently loaded sequence as the reference for anchor points. Anchor point calculations will be performed as if this was the current frame, even when another is actually being displayed. Without | ||
this, sequences with variable-sized frames (possibly with trimming) can jump around during scaling and rotation, due to the anchor point resolving to a different position. | ||
|
||
## Syntax | ||
|
||
object:useFrameForAnchors( [frameIndex] ) | ||
|
||
##### frameIndex ~^(optional)^~ | ||
|
||
_[Number][api.type.Number]._ The frame index in the currently loaded sequence you want to use as reference. The default is the current frame, or 1 is none has been set. In a sprite sequence, `1` indicates the first | ||
frame <nobr>(not `0`)</nobr>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.