[Oberon] FPGA - Bitmap Replace Horizontal Line

Tomas Kral thomas.kral at email.cz
Mon May 22 10:33:36 CEST 2017


I was scratching my head over how to implement the `replace' 
mode. Seems more complicated than `invert' mode, which only applies `/'
set operator in place of `+' in the PaintHLine.Mod (see earlier post)

I thought to erase destination rectangle with $0000$ first than paint
bitmap in the cleared area.

To erase destination rectangle, appears to be done in two steps, paint
black rectangle, then invert it.

The replace mode can be done in three steps:
[a] paint black rectangle
[b] invert black rectangle
[c] paint bitmap in the cleared area

The above replace mode performs 3 times worse to Paint/Invert modes.

What do you think?

Tomas Kral <thomas.kral at email.cz>

More information about the Oberon mailing list