tima_gt 1 Posted August 15, 2016 Share Posted August 15, 2016 BlocksImageAPI (Made for my project - tde-desktop as optimization for wallpapers) Example on TIER III graphics card: Example on TIER II graphic card: Example program code: defX = 80 defY = 25 term = require("term") setpos = term.setCursor dofile("tde-apis") gl.setResolution(defX,defY) wallpaper = loadImage("tde-wallpaper") setbg(0xFFFFFF) xfill(1,1,defX,defY," ") drawImage(wallpaper) setbg(0x000000) xfill(1,1,defX, 1, " ") setpos(1,1) write("[S] [Меню]") This API have 2 functions: loadImage(filepath : string) drawImage(image : array of integer) Pastebin Link (API) - http://pastebin.com/TiZPa8PN Pastebin Link (Drawing program) - http://pastebin.com/M8cTPXAV Drawing Program MAN: Translations for not russian users: [Ðовый блок] = [New Block] [Сохранить] = [Save] [Выйти] = [Quit] Выберите 1 позицию блока = choose the first position Выберите 2 позицию блока = choose the second position Цвет:_ = Color:_ Сохранение изображениÑ... = Saving... USE : tde-paint <new image name> This program is not edits old images yet and don't have "UNDO" functionality. Attention! This program at the early stage of development! It can crash or work incorrect. Quote Link to post Share on other sites