@novorender/api / createTransparentHighlight
Function: createTransparentHighlight()
function createTransparentHighlight(opacity): object & readonly number[];
Defined in: @novorender/src/web_app/highlight.ts:16
Create a highlight color transform that replaces material opacity.
Parameters
Parameter | Type | Description |
---|---|---|
opacity | number | New material opacity between 0 and 1, where 0 is 100% transparent and 1.0 is 100% opaque. |
Returns
object
& readonly number
[]