Skip to content

five-on-it / apps/client/src/renderer/glass / placeCrack

Function: placeCrack() ​

placeCrack(pane, at, radius, minRadius): PlacedCrack

Defined in: apps/client/src/renderer/glass.ts:243

A crack of radius (m) centred where at falls on the pane, moved inside it so it covers no paint (shrunk down to minRadius where the pane is too narrow for it).

Parameters ​

pane ​

Pane

at ​

Vec

radius ​

number

minRadius ​

number

Returns ​

PlacedCrack