# Return result of last brush stroke?

**URL:** https://community.aseprite.org/t/return-result-of-last-brush-stroke/8531
**Category:** Scripts & Extensions
**Created:** [March 27, 2021, 11:42am UTC](https://community.aseprite.org/t/return-result-of-last-brush-stroke/8531 "2021-03-27T11:42:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![djentalist](https://community.aseprite.org/letter_avatar/djentalist/32/5_5575768a8748004e209b776fc1b2916d.png) [@djentalist](https://community.aseprite.org/u/djentalist)
#### Post date: [March 27, 2021, 11:42am UTC](https://community.aseprite.org/t/return-result-of-last-brush-stroke/8531/1 "2021-03-27T11:42:08Z")

</div>

I was wondering if it’s possible in scripts to specifically get the result(pixels) of only your last brush stroke, and perform further actions on it. I want to extend functionality for the contour tool (or make a similar tool) where it automatically applies a stroke outline when you draw something (and it would be even better if it could also anti-alias the result with a color of your choice, but I don’t know how to code that).

Pictures because images make this a lot easier to explain:

 ![contor](https://community.aseprite.org/uploads/default/original/2X/e/e8103dd9eb32177e04457d3c0c35ad4021ae89e6.png)  
So the whole idea is that all of this would be the result of a single mouse click and drag.
