taud logo; command.js supporting .alias file

This commit is contained in:
minjaesong
2026-04-28 01:20:48 +09:00
parent dc3c73252e
commit 8d7d534bc8
7 changed files with 43 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ exports.SpriteSheet = function(tilew, tileh, tex) {
return ty;
};
};
exports.drawTexPattern = function(texture, x, y, width, height, framebuffer, fgcol, bgcol) {
exports.drawTexPattern = function(texture, x, y, width = texture.width, height = texture.height, framebuffer = false, fgcol, bgcol) {
if (!(texture instanceof exports.Texture) && !(texture instanceof exports.MonoTex)) throw Error("Texture is not a GL Texture types");
let paint = (!framebuffer) ? graphics.plotPixel : graphics.plotPixel2