random
@Stable
Random solid color picked from given probabilities. Custom source of randomness can be used.
Note: This brush uses Separate brush mode.
Example:
QrBrush.random(
0.05f to Color.Red,
1f to Color.Black
)Content copied to clipboard