Графика - Как быстро рисовать цветные картинки.

CategoriesПрограммированиеГрафикаКонвертирование
Inferno #10
30 апреля 2007

Graphics - How to quickly draw colorful pictures.

Graphics - How to quickly draw colorful pictures.
  How quickly draw colorful pictures

Alone Coder


   Finally I found time and can share
tsya one of his secrets:) And it was -
how to draw a full screen color car
roughcast in one sitting. One sitting in a
depending on the required quality to be
ranged from fifteen minutes to chetyrehpyati hours, or 
something like that. 

   This method of painting I use with
times ZX-Guide # 4.5. There were very fast
rye, very clumsy quality sketches
but hardly anyone dares to say that the line
model did everything they were not the topic:) Always
want to see the picture stood on its
place with a sense - but the finished pictures on the
choice, as a rule, no, that's just such a
method can save the idea, which would otherwise
disappeared without a graphical embodiment.

   So.


                1. Contour


   Contour should initially draw
on paper, rough strokes the families of
that the most successful (as will be seen
after a critical look at the product
tion) to stress. The thing is fast, can be
make a lot of attempts, and with some
times (even if you're really not friends with ka
randashom) will definitely get something that
up.

   You can not draw a pencil, and ball
curve handle. Just stick painted car
roughcast in Inferno # 4.

   Happy owners of a scanner or digital
rovogo camera can directly drive
image into a computer. Ppedpolozhim that
We do not have such equipment. That we de
barking? Open vinduzovy Paint. Create
white (black, green, blue, ... - despite
what background is necessary for the plot) list.Berem mouse
and make rubbings contour manually. Why not
Photoshop? Because Paint'e easier weight
shtabirovat pieces of images with
first attempt failed.

   In total, this step requires minutes two
dtsat. I said above about fifteen? So
If we're already stuffed his hand and go on record
we can skip a piece of paper, and the concentration
round draw about, again behold
family lines from which the excess then
You can delete (or highlight successful as
above).

   If circumstances require to give
the use of enemy platforms and in
doped programs, drawing on the ZX
contours of a program DBS v0.7 (and to
nkretno in it - a mode "H"). other means
for svyaznoshtrihovogo myshkovaniya on ZX yet
no.


             2. Coloring


   Without leaving the Paint (or Photoshop)
begin to paint a vivid kartinku.Berem
colors and bold strokes of smearing them
desi pictures.

   In Photoshop, at this stage is predominantly
society - have a customizable option of
transparency of the brush. "So there are two smear one
nomu the same spot will give a stronger
coloration than one stroke (recall my
chankovy editor in 1997, there also exists
was :))).

   After the fat smears refine image
smear low-fat - in small, transparent,
blur, a tool for "finger" or whatever
there is still a suitable editor. Draw
flattened, waste, schurimsya ... Etc.

   On the ZX for the coloring stage, more or less
suitable only softinkoy 8col, and it is bad,
as there is no greasy hands, but instead is
only a statement of 4 points per frame (in contrast
In contrast to similar programs in which a
frame, however was waving his arm, is drawn only
one point). Because of the thin brush with the rapid
slurring in 8col obtained characteristic
"Leaky" filling, which can be seen
in the ZX-Guide # 4.5 on the picture, "The Mountaineer."
The picture painted from start to finish
in 8col, because DBS did not exist. Drawn
approximately 30 minutes. However, in parallel with
talking on the phone! :)


                3. Shoe


   Crudely drawn and crudely painted
picture should clean up. This process
is the removal of loops and performing
SRI trim tsvetoperehodov (you can cut
cal, can be smooth).

   Remember: you draw not pictures ptsshnuyu
ku, and not even an illustration of the book. Therefore,
did not specify too graphic, eat a lot
konversiya.Vam then anyway and then come
tsya touch up the result is already on the spectrum
Rumovskii kartinke.Zachem twice to draw
the same parts?


             4. Size Selection


   Usually it takes a picture in full screen
- 256x192. But there are other cases. Study
Chita is the case, cut just the right
fragment, discarding the unnecessary (for example, I do not
regretted the feet of dude who put
on ArtField'2006) and will scale in SC
 Koi need size. I'm doing it this way:

   I. By eye single out the window with the relation
 Niemi sides between 4:3 and 1:1.

  II. Crop (it is "Crop" button, it also
"Scattergun" - do not know how long it may called
 vatsya in all sorts of bad localization).
 III. Image Size 256 x put skolkopolu
 chitsya, preserving the aspect ratio.

  IV. In the Canvas Size putting height 192
obkusyvaniem with the right hand or both
parties, as prettier.


           5. Summing up the colors


   Now, since no guarantee that the color of
you will have the Spectrum, you should
pick up these colors that have more
likely to undergo conversion. Dark Spectrum
vskie colors are of the form 0, 0, 0 (black)
0, 0, 160 (blue), etc., to 160, 160, 160
(White). Light - the same thing, but 255 instead
one hundred 160. The number 160 can vary depending
dependence on the used converter, I
in con18 used instead 128. But
note that in the emulator you are likely to
see 160. On a real machine with a typical
TV - too.

   But do not dwell on the stage under
reference to the pure colors - good color
transitions sometimes after conversion despite
tsya good! (But tsvetoperehodam on Teles
GOVERNMENTAL colors are usually not applicable.)

   If you are planning a smooth picture without
tsvetoperehodov (remember the previous number
magazine), a selection of colors you can help yourself
Photoshop. That it has helped you, poke option
"Indexed Color", and in her "Adaptive Pali
true "with the correct number of flowers (10-20) and
WITHOUT hatching. Then you can Kru
tit color of large areas through the palette.

   In Photoshop it is possible (I use it
used the image to IG # 9) to obtain numbers
prime hatching type diamond (in the people, "cha
nkovye). To do this, set the color domain
STI on the correct percentage between the two
Spectrum colors, then Scone
inverted in the Spectrum palette. This
All the same option "Indexed Color", with the dashed
hovkoy "Diamond" and with a palette of "Personal"
you draw for yourself - I have it a long time
is drawn, I have it just load the.
If the disk remains the place, put it in
application.

   In some cases, we find no Photoshop
leads the desired color pair for the 50-percent
hatching and immediately rubs many colors.
This, in particular, interfered with konvertirovaya
SRI graphics for color version of Season of
Sacura - stray pixels everywhere had
remove by hand.


               6. Conversion


   Then choose: convert the direct
DoD Spectrum screen, or first in the 8
color? The second will bring the convenience of
50-percent hatch, but do not give Bright.
The first will give Bright, but the hatching have
draw by pixels. However, if you do not
need to show quality, you can not do
mother of subsequent processing. For example,
photos for the magazine, I immediately convert
the screen, and handling is only in the
removing the above-mentioned stray pixels.

   To convert some friends love
in bmp2scr. But I use my envelope
rum con18 (source - in the annex to IG # 7
a new source and. exe - I have to
site). There is a color settings, the choice of
number of chunks, choice of level dithering'a
and manual mode veiled areas we need to
IOM. All this is necessary. Pick up the settings
until you are sure that it is better skonver
tit fail. And then you also have to lie
chnuyu remove artifacts.


        7. Cleaning after conversion


   Actually, the extra pixels and retracting
incorrectly colored squares. Was once necessary, when some do 
not. Need cleaning depends on the success of sweating in tuned 
to ykami the conversion (see prev. paragraph).


   If the image is translated into a format spec
trumovskogo screen, then follow the cleaning procedures of
plague in the BGE.

   If the picture is translated into 8 color,
instead of cleaning produce in my prog
Rummy 8col perezamazyvanie areas, which
rye look bad by pressing "V".
When the entire screen will look good
the result obtained by the button "V", can be
save proudly calling complete the picture
Coy. Although (perezamazyvaniya before or after,
or rather;)) does not hurt to bring more
50% tsvetoperehody. Where to get. 50-pro
centage hatching in 8col is one
time by pressing the left and right buttons
mouse or the middle button, who has.


               8. Pikseling


   Further, if we still have not bothered to draw,
ship received the canvas in BGE and do
to each pixel held his month
those ... If pokorpet, then a dark past
Pictures nobody even guess:)


                  *



   There is evidence that the described method using
summons / nd no one I have. For example, Ice'Di Nam
 feces at him in a newspaper Psychoz.

   Benefit - not only in the speed of rice
of. When this method is much more probable
tnost that will find the right space
servings (bad would you straightened in Photo
shop'e at any stage) would be correct
angle (on paper, it is easier), it is better la
Gut light and shadow (paint on, depart,
schurimsya ...) etc.



   Have a nice drawing! Send illustration
radios for Info Guide:)




Other articles:

Likbez - Batteries. Practices.

Likbez - Batteries. Results of experiments with different batteries.

Opportunities Spectrum - The format ani-files on the ZX.

Inferno - The authors of the magazine.

Opportunities Spectrum - How to play multichannel music on beeper.

Opportunities Spectrum - Support for the DVD format on ZX.

Gameland - On the competition absurd (or clumsy) games for the ZX Spectrum - Crap Games Competition.

Inferno - Entered from the editor.

Inferno - Errors in the previous numbers.

For Coderz - Gray code and optimization programs.

For Coderz - Building a graphical user interface.

Formats - details on the decoder jpeg.

Iron - Description of Products K561PU4.

Inferno - Letters to the Editor.

Formats - The format of a packed file MegaLZ.

Scorpion ZS - The structure of the markup on a computer hard drive Scorpion.

ZX Clones - multiplatform on the ZX Spectrum. Computers SAM Coupe and MSX.

Advertising - Advertising NedoPC.

Inferno - On the shell.

Activities - The "Spectrum" at the competition on the night orienteering Okinchitsa 2004.

Softinka - Comparative table of the results of packing code files with various packers.

Advertising - Advertising King of Evil.

Softinka - Software for printing in the annex to the magazine.

Softinka - Music Editor Pro Tracker v3.71. Revision history.

Advertising - Ads by V. Bogdanovich.

Iron - Some RND-generators.

Opportunities Spectrum - A hardware scrolling on ZX Spectrum.

Pentagon - Sinhroselektor video at Pentagon. Problems and the scheme.

DIY - Universal TAPE interface. Scheme of loading and recording tapes.

Sound - Features audio device TurboSound FM.

DIY - The scheme of the analyzer state TTL output.

Future Spectrum - Video Display V9990. Enhanced graphics capabilities ZX Spectrum.

Softinka - Updates to the image viewer: ANSI viewer, MCX viewer.

Interview - An interview with musician X-Raizor of Omega Hackers Group.