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

Extends Color

Constructors

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

    Parameters:
  • c: Number — the amount of cyan
  • m: Number — the amount of magenta
  • y: Number — the amount of yellow
  • k: Number — the amount of black
  • a: Number — the alpha value — optional, default: 1

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

Sample code:

var components = [1, 1, 0, 0.5];
var color = new CMYKColor(components);
print(color); // { cyan: 1.0, magenta: 1.0, yellow: 0.0, black: 0.5 }
    Parameters:
  • components: Array of Number

Operators

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

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

Properties

Returns the color component values as an array.

Sample code:

var color = new CMYKColor(1, 1, 0, 0.5);
print(color.components) // 1.0, 1.0, 0.0, 0.5, -1.0
Read-only.

    Returns:
  • Array of Number

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

    Returns:
  • Number

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

    Returns:
  • Number

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

    Returns:
  • Number

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

    Returns:
  • Number

Inheritance

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