Table of Contents

Pixel:setColor

Available since version: Gideros 2011.6

Description:

Sets 4-colour gradient fill to Pixel.

Syntax:

Pixel:setColor(color1, alpha1, color2, alpha2, color3, alpha3, color4, alpha4)

Parameters:

  • color1: (number) Color of top-left gradient corner.
  • alpha1: (number) Alpha of top-left gradient corner.
  • color2: (number) Color of top-right gradient corner.
  • alpha2: (number) Alpha of top-right gradient corner.
  • color3: (number) Color of bottom-right gradient corner.
  • alpha3: (number) Alpha of bottom-right gradient corner.
  • color4: (number) Color of bottom-left gradient corner.
  • alpha4: (number) Alpha of bottom-left gradient corner.