generating strokes