{"id":348,"date":"2016-07-15T22:02:53","date_gmt":"2016-07-15T20:02:53","guid":{"rendered":"http:\/\/www.hunggartorino.it\/ql\/?p=348"},"modified":"2016-05-13T14:51:56","modified_gmt":"2016-05-13T12:51:56","slug":"border-paper-ink-lets-color-our-display","status":"publish","type":"post","link":"http:\/\/www.hunggartorino.it\/ql\/border-paper-ink-lets-color-our-display\/","title":{"rendered":"BORDER, PAPER, INK: let&#8217;s color our display!"},"content":{"rendered":"<p><span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"Chi proviene dal mondo dello Spectrum conosce perfettamente questi comandi che sono il pane quotidiano.\">Who comes from the ZX Spectrum world knows perfectly these commands that are his bread and butter. <\/span><span title=\"Sul QL non c\u2019\u00e8 tanta differenza senonch\u00e9 l\u2019area del border non esiste (per fortuna) ma il comando serve solo per disegnare un bordo, dallo spessore deciso dall\u2019utente, nel riquadro di output.\">For QL there is not much difference except the lack of border area (thankfully) but the command purpose is only to draw a border, in the output window, having the thickness chosen by the user. <\/span><span title=\"Ne consegue che di default lo spessore \u00e8 0. La sintassi \u00e8 la seguente: \">Therefore the thickness is 0 by default. The syntax is the following:<br \/>\n<\/span><span title=\"BORDER spessore,colore \">BORDER <em>thickness,color<\/em><br \/>\n<\/span><span title=\"Tale comando, nell\u2019area di output disegna un rettangolo colorato.\">This command draws a colored border <span title=\"Sul QL non c\u2019\u00e8 tanta differenza senonch\u00e9 l\u2019area del border non esiste (per fortuna) ma il comando serve solo per disegnare un bordo, dallo spessore deciso dall\u2019utente, nel riquadro di output.\">in the display area<\/span>. <\/span><span title=\"Pertanto se si vuole creare un bordo in un\u2019altra zona dello schermo \u00e8 necessario usare lo statement WINDOW che, grazie ai 4 paramentri, \u201cdisegna\u201d un rettangolo in una porzione di schermo desiderata.\">Therefore if you want to create a border in another area of the screen, you must use the WINDOW statement which, through the 4 parameters, &#8220;draws&#8221; a rectangle in the desired area of the screen. <\/span><span title=\"Ecco quindi che l\u2019utilit\u00e0 del comando BORDER fa s\u00ec che l\u2019area dell\u2019output WINDOW venga ben delineata sullo schermo.\">Hence the useful BORDER command will clearly mark the WINDOW output area on the screen. <\/span><span title=\"Volendo si puo\u2019 fare un \u201cborder multicolor\u201d semplicemente creando un border di un colore con uno spessore maggiore per quello pi\u00f9 esterno fino ad un border pi\u00f9 sottile per quello pi\u00f9 interno. \">If you want you can create a &#8220;multicolored border&#8221; by simply making a thick colored border followed by other borders having decreasing thicknesses.<br \/>\n<\/span><\/span><span id=\"result_box\" class=\"\" lang=\"en\"><\/span><span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"Esempio: \">Example:<\/span><\/span><span id=\"result_box\" class=\"\" lang=\"en\"><\/span><span id=\"result_box\" class=\"\" lang=\"en\"><\/span><\/p>\n<p><span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"Esempio: \"><br \/>\n<\/span><span title=\"470 BORDER 7,2 \">470 BORDER 7.2<br \/>\n<\/span><span title=\"480 BORDER 6,3 \">480 BORDER 6.3<br \/>\n<\/span><span title=\"490 BORDER 5,4 \">490 BORDER 5.4<br \/>\n<\/span><span title=\"500 BORDER 4,5 \">500 BORDER 4.5<br \/>\n<\/span><span title=\"510 BORDER 3,6 \">510 BORDER 3.6<\/span><\/span><\/p>\n<p><span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"510 BORDER 3,6 \"><br \/>\n<\/span><span title=\"Questo creer\u00e0 un bordo dentro un altro dando cos\u00ec un effetto di profondit\u00e0.\">This will create a border into another thus giving an appearance of depth. <\/span><span title=\"C\u2019\u00e8 da dire che i comandi di print finiranno nell\u2019area del bordo sovrapponendosi cos\u00ec al riquadro generato dal comando pertanto \u00e8 consigliato \">It must be said that the print commands will end up in the edge area <span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"C\u2019\u00e8 da dire che i comandi di print finiranno nell\u2019area del bordo sovrapponendosi cos\u00ec al riquadro generato dal comando pertanto \u00e8 consigliato \">overlapping<\/span><\/span> the rectangle generated by the command. Therefore is recommended to type:<br \/>\n<\/span><\/span><span id=\"result_box\" class=\"\" lang=\"en\"><span title=\"usare AT x,y: PRINT \u201cstringa\u201d \">AT x, y: PRINT &#8220;text&#8221;<br \/>\n<\/span><span title=\"Paper \u00e8 esattamente come per lo Zx anche se il suo effetto da riga di comando si ottiene solo dopo un CLS. \">Paper works exactly as for the ZX Spectrum although its effect is achieved only after a CLS.<br \/>\n<\/span><span title=\"Se il print \u00e8 successivo al paper, tale comando come sullo zx colorer\u00e0 lo sfondo della singola scritta. \">If the PRINT command follows the PAPER one, as in ZX Spectrum it will color the background of the printed text.<br \/>\n<\/span><span title=\"INK infine \u00e8 il colore della scritta o del comando grafico (sul QL si puo\u2019 applicare anche a punti e linee) \">Finally INK defines the color for text or graphical drawings (on QL it can also be applied to points and lines).<br \/>\n<\/span><span title=\"Per quanto riguarda i valori sul QL non ci sono di limiti nel senso che oltre ai classici di sistema (dipende se si usa un QL classico o un emulatore o un sistema espanso) verranno miscelati con il sistema di retinatura per poter offrire pi\u00f9 sfumature di colori\">As regards the color range, the QL is not limited as the ZX because in addition to the classic system colors (depending on if you are using a classic QL or an emulator or an expanded system), the colors will be mixed through the screen system in order to offer more color shades.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #b3b3b3;\"><em><a id=\"yui_3_16_0_1_1457430934257_1933\" class=\"photo-license-url\" style=\"color: #b3b3b3;\" href=\"https:\/\/creativecommons.org\/licenses\/by\/2.0\/\" target=\"_newtab\" rel=\"license cc:license\" data-rapid_p=\"34\"><span id=\"yui_3_16_0_1_1457430934257_1932\">Photo: <\/span><\/a><a class=\"gallery_link\" style=\"color: #b3b3b3;\" title=\"Dirty numbers\" href=\"https:\/\/www.flickr.com\/photos\/dahlstroms\/6568720683\/in\/gallery-francoispacaud-72157640071009176\/\">Dirty numbers <\/a>\u00a0 by H\u00e5kan Dahlstr\u00f6m \/\u00a0 <a id=\"yui_3_16_0_1_1457430934257_1933\" class=\"photo-license-url\" style=\"color: #b3b3b3;\" href=\"https:\/\/creativecommons.org\/licenses\/by\/2.0\/\" target=\"_newtab\" rel=\"license cc:license\" data-rapid_p=\"34\">CC BY<\/a><\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"Who comes from the ZX Spectrum world knows perfectly these commands that are his bread and butter. For QL there is not much \n<a class=\"moretag\" href=\"http:\/\/www.hunggartorino.it\/ql\/border-paper-ink-lets-color-our-display\/\"> [..more...]<\/a>","protected":false},"author":2,"featured_media":315,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":7,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":694,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/posts\/348\/revisions\/694"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/media\/315"}],"wp:attachment":[{"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hunggartorino.it\/ql\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}