The pixel Module

class pixel.Pixel(pixels, x, y)

A pixel in an image with a color and an x and y location.

get_blue()

Return the blue value of this Pixel.

get_color()

Return a Color object representing the color of this Pixel.

get_green()

Return the green value of this Pixel.

get_red()

Return the red value of this Pixel.

get_x()

Return the x value of this Pixel.

get_y()

Return the y value of this Pixel.

set_blue(b)

Set the blue value of this Pixel to int b.

set_color(color)

Set the color values of this Pixel to those of Color object color.

set_green(g)

Set the green value of this Pixel to int g.

set_red(r)

Set the red value of this Pixel to int r.

Previous topic

The picture Module

Next topic

The color Module

This Page