Copy Link
Add to Bookmark
Report
Saxonia Issue 04 Part 006
Formatting the article
By Rumrunner/VOID
l
If you want to format your own article, this is how to do it.
Put an escapesign (ascii 27) in front of the command and then :
To get a line on screen, like the one above, use the l command.
To change colours, simply use 0 through 2
To insert a picture, first convert it to raw format, then use the
following :
b11112222filename
Where 1111 is the width of the picture in bytes and 2222 is the height
of the picture in lines. Filename is where you put the name of the file.
It's important that you use four digits all of the time, or else it
will not work out. For instance, if the picture is 10 bytes wide and
40 lines high, use 00100040. To change the colourpalette according to
the colours used in the picture, use an iffconverter to save out the
colours separately (don't save them in the picture), and then load the
file into an assembler. Change all of the dc.w's so that the first colour
is the one written to colour five ($dff188, referred to as $0188 in the
dc.w list). Cut out the one written to colour0 ($dff180) through colour4
($dff186), as these colours are kept unchanged all of the time. Now, you
should have twelve colours in the list. The next step is to remove all
of the colourregister, so you only have the colourvalues left. Assemble
this and write out the file with the same name as the picture name, just
add .f at the end. The file should be 24 bytes long. Remember to use
four bitplanes all of the time, or else the picture will most likely
just look like a mess on the screen.
Right, that should be the most important to think of, in according to
keeping the lines shorter than 75 characters. One more thing though,
for all of the commands except the drawline command, you need to put a
space at the end, if not, you will lose the next character on screen
(for instance if you have changed colours) and the code will not find
the correct filename for pictures.
Have fun