ZX Format #06
29 июля 1997

Programmers - sharing experiences: "3-colour". Description of the effect of colors on 8-point ", help to the viewer, and how many words on the conversion of images in format "3-colour".

<b>Programmers</b> - sharing experiences:
  Extended color capabilities ZX.

music by DNK
(C) CREATOR
G (C) GODFATHER
_______________________________

 So, hello everyone!

 You probably think that I now begin
you "drip on the brain" with all sorts of stories about it: EGA 
graphics, video card to spectrum, etc. But it is not. All that 
is here written will work on any sinter

even on the "brake" and besides -
do not need to solder and connect ...

 "- This can not be!"

             "- May be ..."


   (C), my ...


  Tricolor, that's what I would like to tell you. Well for 
starters of course, a little Technical Information:

in the tricolor on kartinyke, in full
screen, up to 8 colors on one point, without depending on 
others. 

  Although the screen flickers a little, but who
have one on it will not pay attention ...


  Well, now standard, the theory ... Who does not
please can scroll through the text further.


  At the heart of the tricolor is known
all students, the principle of forming
images on the "CRT" well, or ask for regular, color TV.

  There, on TV, the image is formed by three primary colors:
red, blue, green. And all the others
shades are produced by mixing these primary colors at one 
point. Here, for example, how is the color on the TV screen:


 R - red beam
 G - green light
 B - blue ray


                1 2 3
Screen> * * *

                ^ ^ ^

                B R G

                ^ ^

                R B

                ^

                G

 1 - point to be white. 2 - point will be
red. 3 - point will be yellow, because
it accounts for two rays, green and blue. Well, a white point 
because it come all the three beams. You can experiment 
yourself at home with red, blue and deer color.


Similarly, in the tricolor. There are three
screen with the image pixels of a color. And they in turn are 
thrown into the main screen, and in the process added 
attributes. Its for each screen, red, blue or green.

Here is an example for the tricolor:


                  123
imaginary screen>

Green Screen> * *
blue screen> * *
red screen> * *



 1 - point to be white. 2 - point will be
red. 3 - point will be yellow, because
She posed in a blue and green screen. The first point of white 
for the same reason as in the example of the television screen, 
in the case of the tricolor surrounding it in all three 
screens. 

 What a sham the screen? This is what they see
as a result of our eyes.
 Since the inertia of human vision
is large enough, then when you change screens,
with a frequency around the critical value (in normal 
circumstances about 50Hz, but the level of threshold depends on 
the brightness - the darker the lower, and the eye just typical

deceived) picture can be seen combined. The truth is still 
flickering markedly.


 Thus, the problem for the coding is clear: we must have time 
to change the screen for one interrupt that sobsvenno and done 
in the viewer, which is located in the annex.  Actually, the 
procedure itself, "throwing" images: it came up with our 
encoder MIK from Virt Group, Well, I realiznul. But even before 
the him, first, to their credit,

made to work on Pentagon'e tricolor
Volga soft.

 Problem is that you can not throw a screen
for a single interrupt (40000-50000 cycles)
 And now the very essence: in the viewer, of course, "kidalka 
did not have time to meet the int, but this is not required.

 We only need to keep up screen

  drawn by video processor.

  In this procedure itself Shipping costs
a HALT, and everything else is done
"Streak" (transfer images + music +
survey of the keyboard). But here is a little trick: one 
screen, along with the attributes stored in 7 bank, on-site 
second screen. And his "throwing" in a few cycles of

merely switching screens, that is a time saver. Therefore, the 
remaining screens enough time for the right moment.


That it can give to users?
Here's what: in games, using the tricolor
You can enhance the "brilliance"
registration as a MORTAL KOMBAT by ANCCAH
'& VIRT GROUP. There, in the game, used
tricolor to show the heroes in all their
"Beauty" and looks a very even vpechetlyayusche.

 So, gentlemen, coders and hackers, it's time
"Paint" your game to a higher
Level ...

 Program for viewing and pictures you
can be found in the annex of the journal, but
how to manage this program, I now
tell ...

 Downloading images - roll over
desired fail and presses enter, 0,5, space. File
loaded and the program returns to the
view image.

 All pictures and have zakompressovany
extension of "Y". Kompressovat Pictures
can be anything important to observe certain conditions.

 starting address of the compressed
Unit: 47,104

   address of decompressor: 16384
 Address decompressed
Pictures: 47,104
 interrupts are disabled.

 This mode is available:

 Tuning (used very rarely and then
- For turbo mode) - press 1 and 2.

 Changing the brightness of the screen - enter (you never know
useful)

 3 - change the color border

 space - access to the file menu

 In the file menu is available:

 Downloading music. Osushestvlyaetsya just
as well as images, the program recognizes the music to expand 
the "M", ie therefore you can only download music from 
Pro-Tracker'a v2.1. 

 Enable / disable the music - the key "M"
if the music is generally loaded.

 Log in to view pictures - key "V" of course, if the picture is 
in memory.


 Change the disc - the key "R"

 Changing the drive - press "A", "B", "C", "D"
ootvetstvenno.

 Output in TR-DOS - the key "E"

 Well, here's all in viewer.

ККККККККККККККККККККККККККККККККонвертация pictures with the 
IBM PC. This is a separate conversation, I do not convertible, 
so this raskazhet another person, namely Denis, who actually 
and envelopes of these pictures. 

 Hi! I-Denis (on-same GODFATHER). Here, you rasckazhu on the 
method of conversion in the regime 3colour with IBM or any 
other machine yet what I know. I'll start with the first 
procedure. First of all you need to find any editor to convert 
from XXX colors 8. What method - fleshtambergom (shrimp) or 
patterns (fill) in principle does not matter (This is the 
picture depends). After so unpleasant procedure, which turned

your screen at a dried banana, you can begin the most routine 
work - sharing Eight flowers on 3 basic: R-red,

G-green, and B-blue. This is done quite
simple: stay in the editor function
"Percentage of flowers", is removed 2 colors (for example, to 
select R, have lower% G and B to 0%). Since

konverchu I am at IBM, then let me as examples and benefits are 
the editors and viewers on a PC, but on what means this is done 
on AMIG'e - find out for yourself, if necessary. So, after the 
destruction of what a 2-color we need to write the resulting 
2-color Zoom in on the XXX, and repeat the procedure

2 more times with ostavshimesya flowers. Thus,
you will have the 3 images, which
located in 2 colors-X + BLACK.
 Now you need to make X in white. I am a
doing in PHOTO FINISH'e, but this method
You can use other editors.
For starters, we should find out the number of a color that is 
in the palette of this format and make it white. It now remains 
only to rewrite them on the Spectrum and change in ART STUDIO 
(or anywhere else) white on R, G or B. Well, finally resulting 
files can only merge, and check out our viewer.

_______________________________





Other articles:

Today in the room - the contents of the magazine.

Authors - The authors of the journal ZX-Format No.6

From the authors - the long awaited event finally happened ...

Toys - The last iron (short story on the game 48 irons).

Toys - Many Adventures of Winnie the Pooh. Part Two.

Toys - the game description The Crypt (Castle Master 2).

Toys - description editor Adeventyur - PAW (Part 1).

Toys - description editor Adeventyur - PAW (Part 2).

Toys - description editor Adeventyur - PAW (Part 3).

Toys - description editor Adeventyur - PAW (part 4).

Toys - description editor Adeventyur - PAW (Part 5).

Programmers - Beta Basic: continued talking about BASIC (Part 2).

Programmers - General Sound: Programming Guide.

Programmers - MMD - the driver. Description of the structure of the modem driver for the terminal program MMD.

Programmers - AI on B. Mednonogova. A detailed description of the "wave of the algorithm" trace (automatic calculation of optimal) path, with an example implementation at Basic.

Programmers - Artificial Intelligence. Continuation of a series of articles about "AI". General basis for finding the way to goal.

Programmers - Tr-Dos for programmers. Max Petrov concludes his story about nontraditional methods of work with the disk.

Programmers - sharing experiences: "3-colour". Description of the effect of colors on 8-point ", help to the viewer, and how many words on the conversion of images in format "3-colour".

Programmers - sharing experiences: "3-colour". A few words about converting images in the format of RGB.

Programmers - the exchange of experience: programming Multicolor effects.

IS-DOS - users: how to personalize your system IS-DOS on a specific model of ZX Spectrum-compatible PC and to perform your tasks.

IS-DOS - users: how to copy the system disk IS-DOS and stay with the dead.

IS-DOS - the programmer: a short course - programming in IS-DOS.

IS-DOS - news: new software IS-DOS.

Iron - A short story about the capabilities of the processor Z-180.

Iron - Multiviewer. Description dorabotochki allowing to measure the speed of programs to curb without climbing in the codes - an easy push of a button.

Iron - A new project the firm Peters - "Sprinter". New Spectrum-compatible PC with a new generation of Speccy.

Iron - Opinions about skorpionovskom controller IDE HDD - SMUC.

Iron - SuperSpectrum: one project Spectrum-compatible machines. Its feature is compatible with the PC.

Iron - X-Trade FAQ. Answers to frequently asked questions on the GS and XTR-modem.

Premiere - Flash tracker. Description 4-channel editor of digital music, working with SoundDrive, from the author SoundDrive - Flash Inc.

Premiere - Description of the latest version of the universal terminal program used in SpbZxNet.

Premiere - Mortal Kombat: what awaits you in the full version of the game and some comments to the demo version.

Premiere - XReversy: presentation of a new toy from the popular family of "Solve puzzle - see the picture."

Interview - An interview with one of the most famous spektrumistov - Andrew Larchenko.

It was you - The story "Absolute Power".

It was you - The story "The Road".

It was you - Lord of the teeth: a parody of a popular trilogy ...

Mail - Contact us: an e-mail Alex'a from Nizhny Tagil, exhibited in the last room at the Corner of lamer. "

Mail - Letters from readers: Andrei Yakovlev, Denis Tokarchuk, Alex Garkulim, Alexander Gordeev, Evgenii Shumilov Nitochkin Vadim, Michael Larkin.

Mail - free advertising and announcements.

Miscellaneous - Scarecrow.: Nemo talks about the place of the PC and Spectrum in the modern Russia.

Miscellaneous - Review of Nemo in the book on digital circuitry. For anyone who has ever ever been tempted to turn on the soldering iron and ...

Miscellaneous - Questionnaire: Results of our poll spektrumistov.

Miscellaneous - Competition. A brief account of our contests.

Miscellaneous - The problems of the software market: when zagnetsya Spectrum. All over whether to blame hackers?

Miscellaneous - Outlook software. A brief overview of the forthcoming software: Fast Tracker, Pro Sound Creator, Black Crow.

Miscellaneous - Outlook software. Adventyura From Beyond or outside. "

Miscellaneous - A Memoir of the Peter modem network for ZX Spectrum - SPbZXNet.

Amiga Club - Between Us, by users: a comparison of characteristics of the Amiga 1200 with the IBM PC.

Amiga Club - compare the performance of Amigo and PC. As far as Amiga relevant in today's games?


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Demo Party - Results of the Latvian demopati PHAT'9.
Press - News from the scene. Article from the newspaper "Work and Life."
Jokes - 16 jokes.
Programming - Double permit ZX-Spectrum.

В этот день...   29 April