plotting pixels in python

Paul McGuire ptmcg at austin.rr.com
Thu Sep 13 15:06:51 EDT 2007


On Sep 13, 1:37 pm, jo5867... at gmail.com wrote:
> On Sep 13, 11:22 pm, Paul McGuire <pt... at austin.rr.com> wrote:
>
> > On Sep 13, 1:03 pm, jo5867... at gmail.com 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




More information about the Python-list mailing list