# `GSRadialGradient upgradeFromLegacyRepresentation`

*Instance Method*

The behavior of radial gradients has changed from Glyphs 3 to Glyphs 4.

## Declaration

```swift
func upgradeFromLegacyRepresentation()
```

```objc
- (void) upgradeFromLegacyRepresentation;
```

```python
upgradeFromLegacyRepresentation()
```

## Discussion

If the gradient has a parent and contains legacy values, this method normalizes `startRadius`, `endCenter`, and `endRadius`. Otherwise, this method does nothing.

