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/DisplayTestBitmap.lvt
namespace Eccelerators.Matrix.Tests
using Eccelerators.Matrix
using Eccelerators.Matrix.Hub75
/**
* Small rectangular source for clipping and placement tests.
*/
component DisplayTestBitmap : IMatrixBitmap
{
/**
* Return the drawable width in pixels.
*/
override fn GetWidth() int
{
return 3
}
/**
* Return the drawable height in pixels.
*/
override fn GetHeight() int
{
return 2
}
/**
* Return the fixture pixel for an in-bounds drawing request.
*/
override fn GetPixel(x: int, y: int) logic[24]
{
assert x >= 0 && x < 3 && y >= 0 && y < 2
return 0xFF0000 as logic[24]
}
}