Home > PCB_Net > getNetColor
PCB_Net.getNetColor() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Get the color of the specified net
Signature
typescript
function getNetColor(net: string): Promise<IPCB_NetInfo['color'] | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
net | string | Net name |
Returns
Promise<IPCB_NetInfo['color'] | undefined>
Net color, undefined is does not exist this net