This PR adds a new trait ColorPlot with a method linecolorplot() that can be used to add a shape to a canvas with a specified color. Currently color is defined by drawille::PixelColor which provides a set of sane default colors as well as the ability to specify RGB values.
This is a non-breaking change. An example project has also been added to illustrate adding 2 different shapes to a canvas with 2 different colors.
This PR adds a new trait
ColorPlot
with a methodlinecolorplot()
that can be used to add a shape to a canvas with a specified color. Currently color is defined bydrawille::PixelColor
which provides a set of sane default colors as well as the ability to specify RGB values.This is a non-breaking change. An example project has also been added to illustrate adding 2 different shapes to a canvas with 2 different colors.
Refs: #10