Adds separate mode for drawing elements (as a property of a QrVectorColor).
New default color - QrVectorColor.SolidRandom - allows to pick a random color from a set with declared probabilities
Perfomance optimization
Since using separate painting mode required a lot more objects to allocate, createPaint and createPath were replaced with Paint.paint and Path.shape methods that reuse allocated objects.
Will require a little manual migration if custom colors/shapes were used
Separate painting mode
Adds separate mode for drawing elements (as a property of a
QrVectorColor
). New default color -QrVectorColor.SolidRandom
- allows to pick a random color from a set with declared probabilitiesPerfomance optimization
Since using separate painting mode required a lot more objects to allocate,
createPaint
andcreatePath
were replaced withPaint.paint
andPath.shape
methods that reuse allocated objects.Will require a little manual migration if custom colors/shapes were used
New
Rect shape with size
Closes #29 Closes #33 Closes #34