Graphic
class Graphic(var parent: ParentResource, name: String, val filename: String) : AbstractParentResource, FileResource, AppearanceResource, PinnedImage
A Resource corresponding to a .png
or .jpeg
file.
The contents of this file may be a single image, or a collection of smaller images (often arranged in a grid pattern). Collections of smaller images are called an Atlases
. However, there is no Atlas
class. Instead, the Graphic's children will consist of Poses, where the pose defines the rectangular region within the Graphic.
Functions
Link copied to clipboard
Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.
Link copied to clipboard
Creates an Appearance with the same tint. Also, if the new appearances is StretchableAppearance then it will have the same bounds as the previous appearance.
Link copied to clipboard
Set the actor's appearance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard