On Sep 13, 1:37 pm, [EMAIL PROTECTED] wrote: > On Sep 13, 11:22 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > On Sep 13, 1:03 pm, [EMAIL PROTECTED] wrote: > > > > hi to all > > > I am just a beginner of python. I want to know how pixels are plotted > > > in python. I am not intending to use PIL because I don't need to > > > manipulate images. So is there a simple module for 2D graphics and > > > plot pixels > > > Here is a *very* simple-minded module for creating BMP files, that > > supports drawing points, lines, and simple shapes. > > >http://www.geocities.com/ptmcg/python/index.html#bmp > > > -- Paul > > No currently I am using a canvas from the Tkinter module > What I actually want is to show how a line is plotted pixel by pixel > using a delay loop. I want functions something like putpixel not > draw_line
Oh! Google for "bresenham" and then you can plot pixels on your canvas using that algorithm. -- Paul -- http://mail.python.org/mailman/listinfo/python-list