1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00
Pixelorama/addons/aimg_io/frame.gd
20kdc 4658b1cfb6
APNG Loading (#797)
* APNG loader: Import addon to take over APNG handling

* APNG loader: Transition code to using the AImgIO addon

* APNG loader: Can now open APNGs.

* AImgIO: Update to fix bugs

* APNG loader: HTML5

* APNG loader: gdformat/gdlint addon

* APNG loader: OpenSave formatting fix

* APNG Loader: Add ignore line to OpenSave because it's too big

* Fix GIFAnimationExporter bug caused by the switch to the addon
2022-12-23 20:08:46 +02:00

14 lines
413 B
GDScript

class_name AImgIOFrame
extends Reference
# Represents a variable-timed frame of an animation.
# Typically stuffed into an array.
# Content of the frame.
# WARNING: Exporters expect this to be FORMAT_RGBA8.
# This is because otherwise they'd have to copy it or convert it in place.
# Both of those are bad ideas, so thus this.
var content: Image
# Time in seconds this frame lasts for.
var duration: float = 0.1