common, namespace, color, make, from, rgb, scriptless, script-less, scripted, step, view, stepview

Method Zap.Common.ColorMakeFromRGB

Creates a Integer color structure from RGB channels

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Common.ColorMakeFromRGB ( 
	Integer Red,
	Integer Green,
	Integer Blue
)

ZAP Utility

Zap...FromRGB

128

128

128

color

Red

Green

Blue

Output Parameter

Parameters

Red

Type: Integer

Red channel

Green

Type: Integer

Green channel

Blue

Type: Integer

Blue channel

Returns

Integer Argb color structure

Example

VBScript

' Make gray (RGB 128, 128, 128) color and set its value to Text Color property
color = Zap.Common.ColorMakeFromRGB(128, 128, 128)
Application("Demo").View("DemoView").Object("DemoObject").SetProperty "Text Color", Zap.Common.ConvertIntToString(color)

JavaScript

// Make gray (RGB 128, 128, 128) color and set its value to Text Color property
var color = Zap.Common.ColorMakeFromRGB(128, 128, 128);
Application("Demo").View("DemoView").Object("DemoObject").SetProperty("Text Color", Zap.Common.ConvertIntToString(color));

Comment

Make gray (RGB 128, 128, 128) color, convert it to string and set as value to Text Color property

ZAP Utility

Zap...FromRGB

128

128

128

color

ZAP Utility

Zap...IntToString

Zap.Var.."color")

strColor

Step

SetProperty

Text Color

Zap...strColor")

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227