mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
15 lines
602 B
C#
15 lines
602 B
C#
using System.Runtime.InteropServices.Marshalling;
|
|
using Brutal;
|
|
using Brutal.Interop;
|
|
using Brutal.Pointers;
|
|
namespace Brutal.NotCursesApi
|
|
{
|
|
/// Palette API. Some terminals only support 256 colors, but allow the full
|
|
/// palette to be specified with arbitrary RGB colors. In all cases, it's more
|
|
/// performant to use indexed colors, since it's much less data to write to the
|
|
/// terminal. If you can limit yourself to 256 colors, that's probably best.
|
|
public unsafe partial struct NcPalette
|
|
{
|
|
public fixed uint Chans[256]; // RGB values as regular ol' channels
|
|
}
|
|
}
|