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.
- color
- Name of the color to set the link color to. Can also use color of type hwt::Color.
- red
- Value to set the link red color value to. Values can range from 0-255.
- green
- Value to set the link green color value to. Values can range from 0-255.
- blue
- Value to set the link blue color value to. Values can range from 0-255.
- alpha
- Transparency to set the link color to. Values can range from 0-255.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output')
bdeSetLinkColor(explicitLink, 255, 0, 0, 255);
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
explicitLink = bdeGetExplicitLink(diagram, block, 1, 'output')
bdeSetLinkColor(explicitLink, 'red');