Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite warping (or wraping?)
#7
Good work with drawing primitives :-)

For drawing filled circles, I once implemented it on a gfx library. I used bresenham's circle algorithm, but instead of directly plotting the edge pixels, I used them to fill an array of pairs of left/right edge values for each affected scanline. Then filled each scanline with solid color between its left and right edges and voila, filled circle.

This is very old MS-DOS Borland C source with the base algorithm, but you got the idea.
http://csourcecodes.blogspot.com/2016/06...ation.html
Reply


Messages In This Thread
Sprite warping (or wraping?) - by System64 - 11-15-2022, 11:55 PM
RE: Sprite warping (or wraping?) - by megamarc - 11-16-2022, 12:36 AM
RE: Sprite warping (or wraping?) - by System64 - 11-16-2022, 12:52 AM
RE: Sprite warping (or wraping?) - by megamarc - 11-16-2022, 07:14 AM
RE: Sprite warping (or wraping?) - by System64 - 11-16-2022, 08:16 AM
RE: Sprite warping (or wraping?) - by megamarc - 11-16-2022, 08:25 AM
RE: Sprite warping (or wraping?) - by megamarc - 11-16-2022, 08:34 AM
RE: Sprite warping (or wraping?) - by System64 - 11-16-2022, 08:42 AM
RE: Sprite warping (or wraping?) - by megamarc - 11-17-2022, 03:00 AM
RE: Sprite warping (or wraping?) - by System64 - 11-21-2022, 09:05 PM
RE: Sprite warping (or wraping?) - by megamarc - 11-23-2022, 08:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)