---
title: "drawing(_:)"
framework: imageplayground
role: symbol
role_heading: Type Method
path: "imageplayground/imageplaygroundconcept/drawing(_:)"
---

# drawing(_:)

Creates a concept structure from a PencilKit drawing.

## Declaration

```swift
static func drawing(_ drawing: PKDrawing) -> ImagePlaygroundConcept
```

## Parameters

- `drawing`: A PencilKit drawing object that contains a set of strokes. The system uses this drawing, along with other concepts, to guide the image creation.

## Discussion

Discussion Call this method when you want to use a PencilKit drawing as the basis for generating a new image. Typically, you include other text-based concept structures in addition to this one. Include at most one PencilKit drawing among a collection of concepts. Including more than one drawing yields unpredictable image results.

## See Also

### Describing the image

- [text(_:)](imageplayground/imageplaygroundconcept/text(_:).md)
- [extracted(from:title:)](imageplayground/imageplaygroundconcept/extracted(from:title:).md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-29ora.md)
- [image(_:)](imageplayground/imageplaygroundconcept/image(_:)-2s44c.md)
