PeachDrawing.Core

PeachDrawing.Core.ColorMatrix

ColorMatrix.Apply(Vector4) Method

Applies this matrix to a single RGBA color: Linear * color + Offset. Used by tests and by any future caller that needs the transformed value of one already-known, static color (e.g. a solid text/fill color) - not by DrawImageWithColorMatrix, which composites against arbitrary already-painted tile content rather than a single known input color.

public System.Numerics.Vector4 Apply(System.Numerics.Vector4 color);

Parameters

color System.Numerics.Vector4

Returns

System.Numerics.Vector4