Search
Preparing search index...
The search index is not available
sfml.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
sfml.js
Sprite
Class Sprite
Hierarchy
SpritePluginPackage
Drawable
Sprite
Index
Constructors
constructor
Methods
_raw
get
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Position
get
Rotation
get
Scale
get
Texture
get
Texture
Rect
move
rotate
scale
set
Color
set
Origin
set
Position
set
Rotation
set
Scale
set
Texture
set
Texture
Rect
Constructors
constructor
new
Sprite
(
texture
?:
Texture
, rect
?:
IntRect
)
:
Sprite
new
Sprite
(
srcSprite
:
Sprite
)
:
Sprite
Parameters
Optional
texture:
Texture
Optional
rect:
IntRect
Returns
Sprite
Parameters
srcSprite:
Sprite
Returns
Sprite
Methods
_raw
_raw
(
)
:
any
Returns
any
get
Color
get
Color
(
)
:
Color
Returns
Color
get
Global
Bounds
get
Global
Bounds
(
)
:
FloatRect
Returns
FloatRect
get
Local
Bounds
get
Local
Bounds
(
)
:
FloatRect
Returns
FloatRect
get
Origin
get
Origin
(
)
:
Vector2F
Returns
Vector2F
get
Position
get
Position
(
)
:
Vector2F
Returns
Vector2F
get
Rotation
get
Rotation
(
)
:
number
Returns
number
get
Scale
get
Scale
(
)
:
Vector2F
Returns
Vector2F
get
Texture
get
Texture
(
)
:
Texture
Returns
Texture
get
Texture
Rect
get
Texture
Rect
(
)
:
FloatRect
Returns
FloatRect
move
move
(
x
:
number
, y
:
number
)
:
void
move
(
offset
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
offset:
PointType
<
Vector2F
>
Returns
void
rotate
rotate
(
angle
:
number
)
:
void
Parameters
angle:
number
Returns
void
scale
scale
(
x
:
number
, y
:
number
)
:
void
scale
(
offset
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
offset:
PointType
<
Vector2F
>
Returns
void
set
Color
set
Color
(
color
:
number
|
Color
)
:
void
Parameters
color:
number
|
Color
Returns
void
set
Origin
set
Origin
(
x
:
number
, y
:
number
)
:
void
set
Origin
(
origin
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
origin:
PointType
<
Vector2F
>
Returns
void
set
Position
set
Position
(
x
:
number
, y
:
number
)
:
void
set
Position
(
pos
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
pos:
PointType
<
Vector2F
>
Returns
void
set
Rotation
set
Rotation
(
rotation
:
number
)
:
void
Parameters
rotation:
number
Returns
void
set
Scale
set
Scale
(
x
:
number
, y
:
number
)
:
void
set
Scale
(
factor
:
PointType
<
Vector2F
>
)
:
void
Parameters
x:
number
y:
number
Returns
void
Parameters
factor:
PointType
<
Vector2F
>
Returns
void
set
Texture
set
Texture
(
texture
:
Texture
)
:
void
Parameters
texture:
Texture
Returns
void
set
Texture
Rect
set
Texture
Rect
(
rect
:
FloatRect
)
:
void
Parameters
rect:
FloatRect
Returns
void
Exports
Sprite
constructor
_raw
get
Color
get
Global
Bounds
get
Local
Bounds
get
Origin
get
Position
get
Rotation
get
Scale
get
Texture
get
Texture
Rect
move
rotate
scale
set
Color
set
Origin
set
Position
set
Rotation
set
Scale
set
Texture
set
Texture
Rect
Generated using
TypeDoc