GrayScott

public sealed class GrayScott : IReactionDiffusion
Provides ways to perform single reaction/diffusion iterations using the Gray-Scott algorithm

Constructors

GrayScott

#
public GrayScott(NumberMap feedRate, NumberMap killRate, SamplerTiling horizontal, SamplerTiling vertical)
Create a new Gray-Scott reaction-diffusion filter.
feedRate (NumberMap)
killRate (NumberMap)
horizontal (SamplerTiling)
vertical (SamplerTiling)

Properties

FeedRate

#
public NumberMap FeedRate { get; }
Gets the feedrate per sample.

HorizontalTiling

#
public SamplerTiling HorizontalTiling { get; }
Gets the horizontal tiling.

KillRate

#
public NumberMap KillRate { get; }
Gets the deathrate per sample.

VerticalTiling

#
public SamplerTiling VerticalTiling { get; }
Gets the vertical tiling.

Methods

Compute

#
public void Compute(NumberMap a, NumberMap b, out NumberMap aPrime, out NumberMap bPrime, float timeStep)
Compute the next iteration in a RD process.
a (NumberMap)Existing a map.
b (NumberMap)Existing b map.
aPrime (out NumberMap)New a map.
bPrime (out NumberMap)New b map.
timeStep (float)Simulation timestep.
Compute