Table of Contents

Pixel:setColor

Available since version: Gideros 2011.6

Description:

Sets two-colour gradient fill with optional rotation to Pixel.

Syntax:

Pixel:setColor(color1, alpha1, color2, alpha2 [, angle])

Parameters:

  • color1: (number) First color of the gradient.
  • alpha1: (number) First alpha of the gradient.
  • color2: (number) Second color of the gradient.
  • alpha2: (number) Second alpha of the gradient.
  • angle: (number) Sets rotation of the gradient in degrees. Default value is 270: top-bottom gradient.