Author Topic: ...stuck in Anti-Aliasing with BASIC  (Read 968 times)

0 Members and 1 Guest are viewing this topic.

Offline HAL 6128

  • 6128 Plus
  • ******
  • Posts: 514
  • Country: de
    • index.php?action=treasury
  • Liked: 254
  • Likes Given: 1333
...stuck in Anti-Aliasing with BASIC
« on: 15:34, 02 December 11 »
Just for fun I wanted to program an anti-aliasing effect in basic and got stuck. The routine uses the "Xiaolin Wu's line algorithm" (http://en.wikipedia.org/wiki/Xiaolin_Wu%27s_line_algorithm). A simple and "fast" algorithm which calucates distances of an ideal line to it's real coordinates (so... what I hopefully understand right). With that distance a certain colorcode could be calculated.
Now I started two basic programs in BASIC on the DSK attached. One which draws a line and another one which draws a circle. I think I have mathematical rounding problems and/or plotting on the right coordinates, because of overlapping plotting pixel or something else. I don't know.
 
Does anybody has a clue or experiences in anti-aliasing?
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX