local ffi = require("ffi")
function applyColorToTexture(raster, color)
local pixels = ffi.cast("RwUInt8*", raster.cpPixels)
local width = raster.width
local height = raster.height
local stride = raster.stride
for y = 0, height - 1 do
for x = 0, width - 1 do...