A pixle and a line?

Hi list!

What is the esiest way to draw a pixel?
And whatabout a line? Easy if you can draw one pixel ofcourse.

Thats all for me :slight_smile:

/Jesper

http://www.libsdl.org/cgi/docwiki.cgi/Pixel_20Access

-bill!On Fri, Aug 05, 2005 at 02:46:05AM +0200, Jesper Liljegren wrote:

Hi list!

What is the esiest way to draw a pixel?
And whatabout a line? Easy if you can draw one pixel ofcourse.

And for lines you can either implement yourself
http://www.cs.unc.edu/~mcmillan/comp136/Lecture6/Lines.html

Or use a library like SDL_gfx

http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/

Happy coding,
Paulo

Bill Kendrick wrote:>> Hi list!

What is the esiest way to draw a pixel?
And whatabout a line? Easy if you can draw one pixel ofcourse.

http://www.libsdl.org/cgi/docwiki.cgi/Pixel_20Access

-bill!


This message was sent using IMP, the Internet Messaging Program.

Thanks Paulo and Bill.

I wonder if I can do some sweet pixeleffects now. :slight_smile:

/Jesper

Paulo Pinto skrev:>And for lines you can either implement yourself

http://www.cs.unc.edu/~mcmillan/comp136/Lecture6/Lines.html

Or use a library like SDL_gfx

http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/

Happy coding,
Paulo

Bill Kendrick wrote:

Hi list!

What is the esiest way to draw a pixel?
And whatabout a line? Easy if you can draw one pixel ofcourse.

http://www.libsdl.org/cgi/docwiki.cgi/Pixel_20Access

-bill!


This message was sent using IMP, the Internet Messaging Program.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Pixel access like this certainly helps. :wink: (See my MPGfx and Explosions toys)

-bill!On Fri, Aug 05, 2005 at 01:45:25PM +0200, Jesper Liljegren wrote:

Thanks Paulo and Bill.

I wonder if I can do some sweet pixeleffects now. :slight_smile: