![]() ![]() Line fgcol bgcol char x1,y1,x2,y2 ]īlock mode x,y,w,h x2,y2] ģd objectfile drawmode,drawoption Image image fgcol bgcol char transpchar/transpcol x,y Tpoly image fgcol bgcol char transpchar/transpcol x1,y1,tx1,ty1,x2,y2,tx2,ty2,x3,圓,tx3,t圓 Ipoly fgcol bgcol char bitop x1,y1,x2,y2,x3,圓 ![]() cmdgfx.exeĬmdGfx v1.5 : Mikael Sollenborn 2016-2020 There are many example scripts in the archive which shows this usage, as it is the recommended way to handle input for scripts using cmdgfx. Can be used as standalone program but in this context typically used in a pipe chain looking like: Used to process and forward input (key/mouse/resizing). cmdgfx_VT has significantly slower output than cmdgfx_RGB. It only works on Windows 10 machines, as only Windows 10 supports VT-100 escape codes to set colors. The program reads/writes about 8 times as much data as cmdgfx/cmdgfx_gdi, and is therefore significantly slower.Ĭmdgfx_VT: This is the RGB equivalent of standard cmdgfx, which means it can output actual text and use the current font of the console window. Only use cmdgfx_RGB if RGB output is actually needed. the block colExpr has to take into account to produce meaningful values. Colors are stored as 24-bit RRGGBB values, which is something that e.g. ![]() It can also use 24 bit BMP files as input for images, textures etc. For advanced users, it is possible to use more than one font on a single screen, by splitting the output into blocks and using a different font for eachĬmdgfx_RGB : The main difference between cmdgfx_RGB and cmdgfx_gdi is that the former can read/write 24 bit RGB colors.For advanced users, it is possible to get more than 16 color output by splitting the output into blocks and setting an individual palette for each.When needing to place the output with pixel precision instead of character precision (set 'a' flag, then use 'f' flag).When needing to write to desktop instead of current window (set flag U).When needing to write pixels instead of characters.When speed is of the essence (when making animations).If output is monochrome/single color (speed will be same or better).When needing to use another font than the 10 raster fonts or pixel fonts.When the resulting characters actually need to be put into the text buffer.For single output, not animating in a loop (speed is not crucial).Apart from being faster and supporting pixel fonts, there are also a few other things cmdgfx_gdi can do that cmdgfx cannot (see list below). This means that while cmdgfx will use any current font set in the console window, cmdgfx_gdi only supports a small subset of embedded fonts: raster fonts 0-9, plus the specialized fonts a-f which are so called pixel fonts (1 character is 1 'pixel', font a is 1x1 size, font b 2x2 and so on). The cmdgfx_gdi executable is larger than cmdgfx, because bitmap font data is embedded inside the program. Producing a bitmap instead of text may seem nonsensical, but there is a simple explanation: it is (usually) much faster! That is because the Windows API to output text to a console is very slow, as soon as there is more than one color in the output. The main difference between cmdgfx and cmdgfx_gdi is that while the former outputs actual text into the cmd window buffer, the output of cmdgfx_gdi is not text but a bitmap, simulating text output. In several provided examples in the archive (marked with the postfix '-js'), a hybrid solution is used for increased speed, where Batch does the initial setup, and the rest of the script uses Jscript. In fact, doing so will increase speed drastically. There is, however, nothing that stops using other scripting languages as well, such as Jscript or Python. Initially, cmdgfx was made to be used with Batch scripts. Windows command line graphic primitives and 3d, for text based games/demos by Mikael Sollenborn (2016-2020) Cmdgfx / cmdgfx_gdi / cmdgfx_RGB / cmdgfx_VT / cmdgfx_input ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |