This repository has been archived on 2023-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
PainterlyUNO/Matrix App/PregeneratedMods/Invert.cs

20 lines
535 B
C#
Raw Normal View History

2021-06-09 16:43:27 +00:00
using System;
using System.Collections.Generic;
using System.Text;
using static Matrix_App.GifGeneratorUtils;
namespace Matrix_App.PregeneratedMods
{
class Invert : MatrixGifGenerator
{
protected override void ColorFragment(in int x, in int y, in float u, in float v, in int frame, out float r, out float g, out float b)
{
SampleFrame(actualStore, frame, x, y, width, out float lr, out float lg, out float lb);
r = 1- lr;
g = 1 -lg;
b = 1 -lb;
}
}
}