Kraken Logo

Kraken Engine

DocumentationGuidesShowcaseCommunity
Ctrl
K
Navigating the Docs
Building Docs
Overview
Anchor
AnimationController
Audio
Batcher
Body
Camera
Capsule
CastHit
CharacterBody
Circle
Collision
Color
DistanceJoint
Effect
Event
FilterJoint
Flip (Texture)
Font
ImageLayer
InputAction
Joint
Layer
Line
Map
MapObject
Mask
MotorJoint
MouseJoint
ObjectGroup
Orchestrator
PixelArray
PolarCoordinate
Polygon
PrismaticJoint
Rect
RevoluteJoint
RigidBody
Sample
Sampler
Shader
SheetStrip
StaticBody
Stream
Style
Terrain (TileSet)
Text
TextProperties
Texture
Tile (TileLayer)
Tile (TileSet)
TileLayer
TileResult (TileLayer)
TileSet
Timer
Transform
Tween
Vec2
Vertex
WeldJoint
WheelJoint
World

Built bydurkisneer1.Kraken Engine is open source and available onGitHub.

  1. Docs
  2. Classes
  3. Image Layer

ImageLayer

ImageLayer displays a single image as a layer. Access via the 'tilemap' submodule.

Inherits from Layer.

Properties


NameDescriptionType
opacityLayer opacity from 0.0 to 1.0.float
textureTexture used by the image layer.Texture

Methods


Draw

draw(angle: float = 0.0, pivot: Vec2 = ...) → Nonedraw(angle: float = 0.0, pivot: Vec2 = ...) → None

Draw the image layer.

Args

  • angle : Rotation angle in degrees. Defaults to 0.0.
  • pivot : Rotation pivot as normalized coordinates relative to the map size. Defaults to (0.5, 0.5).
PreviousFont
NextInputAction

On this page

PropertiesMethodsDraw