# `GlyphsToolDraw drawLayer:atPoint:asActive:attributes:`

*Instance Method*

Draws the foreground for the Layer.

## Declaration

```swift
func draw(_ layer: GSLayer, at layerOrigin: NSPoint, asActive active: Bool, attributes: [AnyHashable : Any]? = nil)
```

```objc
- (void) drawLayer:(GSLayer *) layer atPoint:(NSPoint) layerOrigin asActive:(BOOL) active attributes:(NSDictionary *) attributes;
```

```python
drawLayer_atPoint_asActive_attributes_(layer: GSLayer, layerOrigin: NSPoint, active: bool, attributes: dict)
```

## Parameters

- `layer` — The layer
- `layerOrigin` — The current position in the edit view
- `active` — If the layer is currently active
- `attributes` — Some attributes

