bdeGetLinkColor

Returns the color of a given link.

Syntax

linkColor = bdeGetLinkColor(link)

Inputs

link
The link to get the color of.
Type: hwdcConnection

Outputs

color
The color of the link.
Type: hwt::Color

Examples

Get the color of a given link:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output');
          linkColor = bdeGetLinkColor(explicitLink);
        

          
            linkColor = struct [
            alpha: 255
            blue: 0
            green: 0
            red: 255
            ]