# Function: drawShape()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [forms](https://jonbogaty.com/lifecycle-kit/api/forms/readme/index.md) / drawShape


# Function: drawShape() {#function-drawshape}


> **drawShape**(`g`, `shape`): `void`

Defined in: [forms/render/pixi.ts:54](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/render/pixi.ts#L54)

Issue one shape's geometry.

Deliberately geometry only — no `fill()` and no `stroke()`. A form rule says
where the outline is; colour comes from pigment and light from assemblage.
The consumer calls `fill`/`stroke` itself after this
returns, which is exactly the pattern the existing renderers already
use (`g.ellipse(...).fill({ color, alpha })`) and so requires no rewrite.


## Parameters {#parameters}



### g {#g}


[`GraphicsLike`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/graphicslike/index.md)


### shape {#shape}


[`Shape`](https://jonbogaty.com/lifecycle-kit/api/forms/type-aliases/shape/index.md)


## Returns {#returns}


`void`
