Copy Link
Add to Bookmark
Report

Saxonia Issue 03 Part 005

eZine's profile picture
Published in 
Saxonia
 · 5 years ago

  

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


← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT