How to calculate the colors of pixels of a stroke given a pixel’s position on the canvas???
From experience of real painting, strokes has a general nature of randomization determined by paper and painting tool. On top of basic randomization, the appearance varies on the density and size of randomization as a result of different painting forces driven by painter’s emotion.
So, to briefly simulate aesthetic-driven strokes connected to our heart / emotion / mind, we could use a basic randomization as the raw model of the stroke, then modify the density and size of the basic randomization to reflect emotion:
- Stroke equation: randomization equation with configurable density and size
- randomization equation: noise function with evenly distributed density and size
- configure density: apply a density equation to the noise function
- configure size: apply a size equation to the noise function
Stroke = density equation * size equation * basic randomization
An illustration of what the stroke equation will produce: in the following image, the top stroke is drawn with strong force, hence corresponds to high density and big size. The middle and bottom strokes are drawn with light force, which are close to the look produced by basic randomization with identity density and size.
Lastly.. Happy Thursday! Nov 16, 2017