lindemeier / painty

C++ library for non photorealistic rendering. Includes a paint renderer based on Kubelka Munk equations, stroke based rendering algorithms and artistic image filters.
MIT License
23 stars 2 forks source link

[SBR] mix target color from palette #49

Closed lindemeier closed 3 years ago

lindemeier commented 3 years ago

When painting brush strokes, select the color from the target image. Find that mixture of color from the palette that minimizes the images-canvas distance.

lindemeier commented 3 years ago

Consider imprecision by discretizing the mixture weights.