---
title: "init(location:timeOffset:size:opacity:force:azimuth:altitude:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkstrokepoint-swift.struct/init(location:timeoffset:size:opacity:force:azimuth:altitude:)"
---

# init(location:timeOffset:size:opacity:force:azimuth:altitude:)

Creates a new point with the provided properties.

## Declaration

```swift
init(location: CGPoint, timeOffset: TimeInterval, size: CGSize, opacity: CGFloat, force: CGFloat, azimuth: CGFloat, altitude: CGFloat)
```

## Parameters

- `location`: The location of this point.
- `timeOffset`: The time offset since the start of this stoke path in seconds.
- `size`: The size of this point.
- `opacity`: The opacity of this point, ranging from 0 to 2.
- `force`: The amount of force used to create this point.
- `azimuth`: The azimuth of this point in radians.
- `altitude`: The altitude of this point in radians.

## See Also

### Creating a stroke point object

- [init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:)](pencilkit/pkstrokepoint-swift.struct/init(location:timeoffset:size:opacity:force:azimuth:altitude:secondaryscale:).md)
- [init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:)](pencilkit/pkstrokepoint-swift.struct/init(location:timeoffset:size:opacity:force:azimuth:altitude:secondaryscale:threshold:).md)
- [init(location:timeOffset:size:opacity:force:azimuth:altitude:secondaryScale:threshold:lateralJitter:)](pencilkit/pkstrokepoint-swift.struct/init(location:timeoffset:size:opacity:force:azimuth:altitude:secondaryscale:threshold:lateraljitter:).md)
