Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  

XL.Color.UnPack

Unpacks color type to red, green and blue components.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XL 3.5 Yes Yes Yes Yes Yes
MBS( "XL.Color.UnPack"; bookRef; value; selector )   More

Parameters

Parameter Description Example value
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
value The packed color value. 255
selector The selector on what to return. Can be red, green or blue. "red"

Result

Returns color component value or error.

Description

Unpacks color type to red, green and blue components.

Examples

Extracts color in RGB mode:

$r = MBS( "XL.Color.UnPack"; $$book; 16711680; "red")
$g = MBS( "XL.Color.UnPack"; $$book; 16711680; "green")
$b = MBS( "XL.Color.UnPack"; $$book; 16711680; "blue")

See also

Created 18th August 2014, last changed 18th August 2014


XL.Color.Pack   -   XL.CopyContent

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins