This release adds two new options to figinator.getFancy for making colored figlets!
You can now control the contrastColor. This means the background color normally, and defaults to black. You can set it to a color name recognized by cecho, such as "white" or "red", or a decho designator such as "<255,255,255>" or "<128,0,0>", or an hecho one like "#FFFFFF" or "#009900". There is also a special designation called "invert" which will make the contrast color the inverse of the gradient. That is to say, if the gradient color for a space is 128,255,0 then the contrastColor would be 127,0,255 for that space.
Example of setting the contrastColor to "magenta" on a "greenbluegreen" gradient.
Example of the same gradient with the contrastColor set to "invert"
Speaking of inverting, there is also a new invert option, which when true will cause the gradient colors to be the background, and contrastColor to be the foreground.
decho(figinator.getFancy({ msg = "Boing!", invert = false, gradient = "rainbow" }))
decho("\n" .. figinator.getFancy({ msg = "Boing!", invert = true, gradient = "rainbow"}))
And finally one example showing the interplay of both options
decho(figinator.getFancy({ msg = "Boing!", invert = false, gradient = "greenbluegreen" }))
decho("\n" .. figinator.getFancy({ msg = "Boing!", invert = false, gradient = "greenbluegreen", contrastColor = "invert" }))
decho("\n" .. figinator.getFancy({ msg = "Boing!", invert = true, gradient = "greenbluegreen", contrastColor = "invert" }))