Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_gifjs

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
GIF encoder. Reference

Usage
Sample capx
Configuration
Set these parameters
  • Repeat: repeat count, -1 = no repeat, 0 = forever.
  • Quality: pixel sample interval, lower is better.
  • Workers: number of web workers to spawn.
  • Background: Background color where source image is transparent.
  • Transparent: Transparent hex color.
in properties table, or set by "Action:Set repeat", "Action:Set quality", "Action:Set workers", "Set background color", "Action:Set transparent" at run-time.
Add frame
Call "Action:Add frame" to add a gif frame from
  • Current animation frame of Sprite object
  • Current content of Canvas object
Set parameter "Copy" to "Copy" to keep a copied image of this gif frame in this plugin.
Render
Call "Action:Render" to render gif. "Condition:On finished" will be triggered when rendering has finished. Get result by these expressions-
  • "Expression:ObjectURL" : object URL of render result.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About