Sg 2.9
GrayColor
Packages RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter

Extends Color

Constructors

Creates a GrayColor with the supplied color component values. The color components have values between 0 and 1.

    Parameters:
  • g: Number — The amount of gray
  • a: Number — The alpha value — optional, default: 1

Creates a GrayColor using the color component values from the supplied array. The color components have values between 0 and 1.

Sample code: var components = [1]; var color = new GrayColor(components); print(color); // { gray: 1.0 }

    Parameters:
  • components: Array of Number

Operators

Checks if the component color values of the GrayColor are the same as those of the supplied one.

    Returns:
  • Booleantrue if the GrayColor is the same, false otherwise

Properties

A value between 0 and 1 that specifies the amount of gray in the gray color.

    Returns:
  • Number

Inheritance

AltStyle によって変換されたページ (->オリジナル) /