Livt packages
Eccelerators.Matrix
Version 1.0.1
Reusable RGB matrix drawing, color conversion, animation pacing, and HUB75 display components for Livt.
Published files (48)
- ColorConverterTest.lvt
- ColorGainTest.lvt
- ColorSampleBitmap.lvt
- ConvertedPainterTest.lvt
- DisplayTestBitmap.lvt
- Hub75ChainTest.lvt
- Hub75Clock100Test.lvt
- Hub75Clock50Test.lvt
- Hub75Clock75Test.lvt
- Hub75Color6Test.lvt
- Hub75ColorTest.lvt
- Hub75Display4Test.lvt
- Hub75Display6Test.lvt
- Hub75FramebufferTest.lvt
- Hub75GeometryTest.lvt
- MatrixColorTest.lvt
- MatrixFramePacerTest.lvt
- MatrixPictureHoldTest.lvt
- MatrixPictureSequenceTest.lvt
- MatrixPipelineTest.lvt
- MatrixRendererPacingTest.lvt
- MatrixRendererTest.lvt
- MemoryDisplay.lvt
- RendererClient.lvt
tests/ColorSampleBitmap.lvt
namespace Eccelerators.Matrix.Tests
using Eccelerators.Matrix
using Eccelerators.Matrix.Hub75
/**
* Midtone and mixed-channel source, independent of converter implementations.
*/
component ColorSampleBitmap : IMatrixBitmap
{
/**
* Returns the two-pixel width.
*/
override fn GetWidth() int
{
return 2
}
/**
* Returns the one-pixel height.
*/
override fn GetHeight() int
{
return 1
}
/**
* Returns fixed test colors or black outside the image.
*/
override fn GetPixel(x: int, y: int) logic[24]
{
if (y != 0) {
return 0x000000
}
if (x == 0) {
return 0x808080
}
if (x == 1) {
return 0xFF8040
}
return 0x000000
}
}