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

rex_canvas_avgrgb

Plugin, ACE table, Discussion thread
Dependence: canvas plugin

Introduction
Get average RGBA value from the canvas asynchronously.

Usage
Sample capx
Get average rgb
  1. Call "Action:Start" to start a calculation task in a webworker if webworker had supported.
  2. "Condition:On finished" will be triggered while calculating completed.
  3. Then get result by ( "Expression:R", "Expression:G", "Expression:B", "Expression:A" ) , or "Expression:RGB", or "Expression:RGBA", or "Expression:Lum"
Cancel
Call "Action:Cancel" to cancel calculating.

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