AI-generated Key Takeaways
-
Stroke.Propertiesrepresents optional properties of a Stroke, such as color and width. -
The
getColorRgba()method returns the stroke color as a 32-bit RGBA value. -
The
getToolTargetDiameter()method returns the target diameter of the stroke, indicating the size of the drawing tool in the same units as the stroke coordinates.
Represents optional properties of a Stroke,
e.g., stroke color and width.
Public Method Summary
| abstract int |
getColorRgba()
Returns the stroke color as a 32-bit RGBA value.
|
| abstract float |
getToolTargetDiameter()
Returns the target diameter of the stroke.
|
Public Methods
public abstract int getColorRgba ()
Returns the stroke color as a 32-bit RGBA value.
public abstract float getToolTargetDiameter ()
Returns the target diameter of the stroke.
This refers to the size of the drawing tool. Although strokes made by the ink engine often don't have a fixed width we're storing just a single value per stroke here because it's difficult (and unnecessary) to obtain the per point diameters. The diameter is given in the same units as the x and y coordinates of the strokes.