Skip to content
pixi-silk
GitHub repository
Function

drawIslandShape

import { drawIslandShape } from 'pixi-silk/ui/island';
function drawIslandShape(
   g: SilkGraphics, 
   shape: IslandShape, 
   fill: {
  alpha?: number;
  color: number;
}
): void;

Fills an island outline as one shape: one instance, exact edges, safe with a see-through fill.

Parameters#

ParameterType
gSilkGraphics
shapeIslandShape
fill{ alpha?: number; color: number; }
fill.alpha?number
fill.colornumber

Returns#

void