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/UV-Grid.cs

16 lines
393 B
C#
Raw Normal View History

2021-06-11 11:36:55 +00:00

using System;
2021-06-09 16:43:27 +00:00
namespace Matrix_App.PregeneratedMods
{
2021-06-11 11:36:55 +00:00
public sealed class UvGrid : MatrixGifGenerator
2021-06-09 16:43:27 +00:00
{
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)
{
r = u;
g = v;
2021-06-11 11:36:55 +00:00
b = MathF.Sin(frame / (float) totalFrames * MathF.PI);
2021-06-09 16:43:27 +00:00
}
}
}