# `GSDrawEnvironment updateColorPalettesWithContainer:`

*Instance Method*

The container can be a font or font master.

## Declaration

```swift
func updateColorPalettes(withContainer container: Any?)
```

```objc
- (void) updateColorPalettesWithContainer:(id) container;
```

```python
updateColorPalettesWithContainer_(container: object)
```

## Discussion

For a layer, the associated master should be used as the representative palette container:

```
container = [layer.font fontMasterForId:layer.associatedMasterId];
```

