workbook.Color

Note:

The content in this help topic applies to SuiteScript 2.x.

Object Description

A color, which is made up of red, green, blue, and alpha components.

Use colors when you create styles using workbook.createStyle(options).

Use workbook.createColor(options) to create this object.

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/workbook Module

Methods and Properties

Color Object Members

Since

2021.2

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/workbook Module Script Samples.

            // Add additional code
...
var myColor = workbook.createColor({
    red: 255,
    green: 192,
    blue: 203,
    alpha: 0.5
});
...
// Add additional code 

          

Related Topics

N/workbook Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices