createWithStyle

Simplified Java-compatible factory method that accepts just color and style. Use this method when calling from Java code that only needs to specify color and style without passing explicit default values for alpha and dimensions.

Parameters

color

The color to render.

style

The style to apply.