xmaps/generate_textures.lua

61 lines
1.4 KiB
Lua
Raw Normal View History

2022-05-19 10:05:11 -07:00
dofile("../tga_encoder/init.lua")
local _ = { 1 }
local K = { 0 }
local W = { 255 }
local pixels = {
{ _, K, K, K, K, K, _ },
{ _, K, W, W, W, K, _ },
{ K, K, W, W, W, K, K },
{ K, W, W, W, W, W, K },
{ _, K, W, W, W, K, _ },
{ _, _, K, W, K, _, _ },
{ _, _, _, K, _, _, _ },
}
tga_encoder.image(pixels):save("textures/xmaps_arrow.tga")
2022-05-19 10:05:11 -07:00
local pixels = {
{ _, _, _, _, K, _, _ },
{ K, K, _, K, W, K, _ },
{ K, W, K, W, W, W, K },
{ K, W, W, W, W, K, _ },
{ K, W, W, W, K, _, _ },
{ K, W, W, W, W, K, _ },
{ K, K, K, K, K, K, _ },
}
tga_encoder.image(pixels):save("textures/xmaps_arrow_diagonal.tga")
2022-05-19 15:37:15 -07:00
local pixels = {
{ _, _, K, K, K, _, _ },
{ _, K, W, W, W, K, _ },
{ K, W, W, W, W, W, K },
{ K, W, W, W, W, W, K },
{ K, W, W, W, W, W, K },
{ _, K, W, W, W, K, _ },
{ _, _, K, K, K, _, _ },
}
tga_encoder.image(pixels):save("textures/xmaps_dot_large.tga")
2022-05-19 15:37:15 -07:00
local pixels = {
{ _, _, _, _, _, _, _ },
{ _, _, K, K, K, _, _ },
{ _, K, W, W, W, K, _ },
{ _, K, W, W, W, K, _ },
{ _, K, W, W, W, K, _ },
{ _, _, K, K, K, _, _ },
{ _, _, _, _, _, _, _ },
}
tga_encoder.image(pixels):save("textures/xmaps_dot_small.tga")
2022-05-22 06:54:25 -07:00
local pixels = {
{ _, _, _, _, _, _, _ },
{ _, _, _, _, _, _, _ },
{ _, _, _, K, K, _, _ },
{ _, _, K, W, W, K, _ },
{ _, _, K, W, W, K, _ },
{ _, _, _, K, K, _, _ },
{ _, _, _, _, _, _, _ },
}
tga_encoder.image(pixels):save("textures/xmaps_dot_tiny.tga")