# Smoother Signatures

DevFeed: [Smoother Signatures](<https://devfeed.tech/articles/smoother-signatures-15857.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/smoother-signatures>)

Author: Square Engineering

Published: 2012-07-20T16:01:00Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [android](<https://devfeed.tech/tags/android.md>), [bezier-curves](<https://devfeed.tech/tags/bezier-curves.md>), [caching](<https://devfeed.tech/tags/caching.md>), [canvas](<https://devfeed.tech/tags/canvas.md>), [computer-graphics](<https://devfeed.tech/tags/computer-graphics.md>), [cubic-bezier](<https://devfeed.tech/tags/cubic-bezier.md>), [drawing](<https://devfeed.tech/tags/drawing.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [latency](<https://devfeed.tech/tags/latency.md>), [linear](<https://devfeed.tech/tags/linear.md>)

## AI overview

Square describes three changes to make Android signatures smoother and more responsive: cubic Bezier spline interpolation connects sampled touch points with curves instead of blocky straight segments; stroke width varies with point-to-point velocity, smoothed by a low-pass filter, because Android touch-pressure readings were not consistent enough for this use; and each Bezier curve is drawn once to an in-memory bitmap, which onDraw then displays instead of recalculating every curve on each redraw. The article says bitmap caching avoids the slowdown caused by redrawing many curves, while noting that touchscreen hardware still limits minimum input latency.

## Source excerpt

Capturing even more beautiful signatures on Android.