Click or drag to resize

GeneratorInterpolateDitherTSource Method

Interpolates a sequence, but applies dithering.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGenerator<TSource> InterpolateDither<TSource>(
	this IGenerator<TSource> generator,
	IGenerator<int> sampleCount
)

Parameters

generator
Type: Gamelogic.Extensions.AlgorithmsIGeneratorTSource
sampleCount
Type: Gamelogic.Extensions.AlgorithmsIGeneratorInt32

Type Parameters

TSource

Return Value

Type: IGeneratorTSource

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGeneratorTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
For example, if the sequence is a binary sequence 1 0 1..., the result is a dithered sequence, something like 1 1 1 1 0 1 1 0 1 0 1 0 0 1 0 0 0 0
See Also