StockBrushes



Provides a fixed set of stock BrushFamily objects that any app can use.

All brush designs are versioned, so apps can safely store input points and brush specs instead of the pixel result, but be able to regenerate strokes from stored input points that look like the strokes originally drawn by the user. Brush designs are intended to evolve over time, and are released as update packs to the stock library.

Each successive brush version will keep to the spirit of the brush, but the actual effect can change between versions. For example, a new version of the highlighter may introduce a variation on how round the tip is, or what sort of curve maps color to pressure.

We generally recommend that applications use the latest brush version available; but some use cases, such as art, should be careful to track which version of a brush was used if the document is regenerated, so that the user gets the same visual result.

Summary

Public properties

BrushFamily

The latest version of a chisel-tip brush that is intended for highlighting text in a document (when used with a translucent brush color).

android
BrushFamily

Version 1 of a chisel-tip brush that is intended for highlighting text in a document (when used with a translucent brush color).

android
BrushFamily

The latest version of a simple, circular fixed-width brush.

android
BrushFamily

Version 1 of a simple, circular fixed-width brush.

android
BrushFamily

The latest version of a pressure- and speed-sensitive brush that is optimized for handwriting with a stylus.

android
BrushFamily

Version 1 of a pressure- and speed-sensitive brush that is optimized for handwriting with a stylus.

android

Public properties

highlighterLatest

val highlighterLatestBrushFamily

The latest version of a chisel-tip brush that is intended for highlighting text in a document (when used with a translucent brush color).

The behavior of this BrushFamily may change in future releases, as it always points to the latest version of the pressure pen.

highlighterV1

val highlighterV1BrushFamily

Version 1 of a chisel-tip brush that is intended for highlighting text in a document (when used with a translucent brush color).

The behavior of this BrushFamily will not meaningfully change in future releases. More significant updates would be contained in a BrushFamily with a different name specifying a later version number.

markerLatest

val markerLatestBrushFamily

The latest version of a simple, circular fixed-width brush.

The behavior of this BrushFamily may change in future releases, as it always points to the latest version of the marker.

markerV1

val markerV1BrushFamily

Version 1 of a simple, circular fixed-width brush.

The behavior of this BrushFamily will not meaningfully change in future releases. More significant updates would be contained in a BrushFamily with a different name specifying a later version number.

pressurePenLatest

val pressurePenLatestBrushFamily

The latest version of a pressure- and speed-sensitive brush that is optimized for handwriting with a stylus.

The behavior of this BrushFamily may change in future releases, as it always points to the latest version of the pressure pen.

pressurePenV1

val pressurePenV1BrushFamily

Version 1 of a pressure- and speed-sensitive brush that is optimized for handwriting with a stylus.

The behavior of this BrushFamily will not meaningfully change in future releases. More significant updates would be contained in a BrushFamily with a different name specifying a later version number.