[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
The best way to draw pixels?
- From: Jamie <jdl28 student canterbury ac nz>
- To: gtk-app-devel-list redhat com
- Subject: The best way to draw pixels?
- Date: Thu, 28 Oct 1999 20:02:48 +1300
What I probably need is a good tutorial on gdk, but I havn't been able
to find one...
i have a gtk program that has a window, and a GtkDrawingArea widget.
I then have the program iterate through this maths formula that
generates images. Basically I have a function that creates a list of
points and the color that those points should be.
Now, the problem is, I am not sure the best way to get these
points/colors from a list and onto
the drawing area.
I have:
created the window
created the drawing area
created a pixmap for the drawing area
then started the formula iterating
after the formula creates 100 points, it calls another function that
should take the point data and draw onto the pixmap these 100 points in
different colors.
But, I don't have any idea how to do this, so does anyone have any idea?
the color at the points i generate changes frequently, and the range of
colors is anywhere in the color spectrum.
Thanks for any help
--
Jamie Love
jlove@clear.net.nz
jdl28@student.canterbury.ac.nz
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]