PenBrushInk

class PenBrushInk(var x: Float, var y: Float, var size: UByte, var angle36: UByte, var alpha: UByte)(source)

One textured-brush stamp returned by the native pen renderer.

The unsigned properties preserve the renderer's byte values without sign extension.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float, size: UByte, angle36: UByte, alpha: UByte)
constructor(x: Float, y: Float, size: Int, angle36: Int, alpha: Int)

Java-friendly constructor that preserves unsigned byte values.

Properties

Link copied to clipboard

unsigned opacity value

Link copied to clipboard

unsigned brush-angle bucket

Link copied to clipboard
var size: UByte

unsigned brush-size value

Link copied to clipboard
var x: Float

horizontal stamp position

Link copied to clipboard
var y: Float

vertical stamp position

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Returns whether other contains the same position and brush values.

Link copied to clipboard

Returns alpha without Kotlin's unsigned JVM name mangling.

Link copied to clipboard

Returns angle36 without Kotlin's unsigned JVM name mangling.

Link copied to clipboard

Returns size without Kotlin's unsigned JVM name mangling.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash derived from all position and brush values.