Mercurial > games > semicongine
comparison tests/test_materials.nim @ 352:00231e014642
fix: tests
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 20 Sep 2023 22:02:20 +0700 |
parents | b83b3a1ccb05 |
children | 61c5d5fe9d93 |
comparison
equal
deleted
inserted
replaced
351:6f61e0bb89b7 | 352:00231e014642 |
---|---|
3 | 3 |
4 import semicongine | 4 import semicongine |
5 | 5 |
6 let | 6 let |
7 sampler = Sampler(magnification: VK_FILTER_NEAREST, minification: VK_FILTER_NEAREST) | 7 sampler = Sampler(magnification: VK_FILTER_NEAREST, minification: VK_FILTER_NEAREST) |
8 (RT, WT, PT) = (hexToColorAlpha("A51931").asPixel, hexToColorAlpha("F4F5F8").asPixel, hexToColorAlpha("2D2A4A").asPixel) | 8 (RT, WT, PT) = (toRGBA("A51931").asPixel, toRGBA("F4F5F8").asPixel, toRGBA("2D2A4A").asPixel) |
9 thai = Image(width: 7, height: 5, imagedata: @[ | 9 thai = Image(width: 7, height: 5, imagedata: @[ |
10 RT, RT, RT, RT, RT, RT, RT, | 10 RT, RT, RT, RT, RT, RT, RT, |
11 WT, WT, WT, WT, WT, WT, WT, | 11 WT, WT, WT, WT, WT, WT, WT, |
12 PT, PT, PT, PT, PT, PT, PT, | 12 PT, PT, PT, PT, PT, PT, PT, |
13 WT, WT, WT, WT, WT, WT, WT, | 13 WT, WT, WT, WT, WT, WT, WT, |