bdeSetLinkColor

Sets the color of a link. Red is for activation links, green is for bus links, blue is for implicit links and explicit links are the rgba value of 64, 64, 64, 255.

Syntax

bdeSetLinkColor(link, color)

bdeSetLinkColor(link, red, green, blue, alpha)

Inputs

link
The link that will have it's color set.
Type: hwdcConnection
color
Name of the color to set the link color to. Can also use color of type hwt::Color.
Type: integer/hwt::Color
red
Value to set the link red color value to. Values can range from 0-255.
Type: integer
green
Value to set the link green color value to. Values can range from 0-255.
Type: integer
blue
Value to set the link blue color value to. Values can range from 0-255.
Type: integer
alpha
Transparency to set the link color to. Values can range from 0-255.
Type: integer

Examples

Set the color of a link to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output')
          bdeSetLinkColor(explicitLink, 255, 0, 0, 255);
        
Set the color of a link to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output')
          bdeSetLinkColor(explicitLink, 'red');