Mercurial > games > semicongine
comparison tests/test_materials.nim @ 813:fb22fd8142b9
fix: tests
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 20 Sep 2023 22:02:20 +0700 |
parents | 7a13941ba204 |
children | 61c5d5fe9d93 |
comparison
equal
deleted
inserted
replaced
812:27346eb7dd37 | 813:fb22fd8142b9 |
---|---|
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, |