pixel


smallest element of an image

pixel
image
brush
zbuf
See also

pixel

pixel(x,y)

        Returns the color r,v,g,a of pixel(x,y).

pixel(x,y)col(r,g,b,a)

        Writes pixel(x,y) color r,g,b,a.
Options:
col(r1,g1,b1,a1,r2,g2,b2,a2)alea: reproductible random color in interval [r1,g1,b1,a1] * [r2,g2,b2,a2].
col(r1,g1,b1,a1,r2,g2,b2,a2)rand: no reproductible random color in interval [r1,g1,b1,a1] * [r2,g2,b2,a2].
Notes:
1) pixel(x1,y1,x2,y2): deals with pixels of window (x1,y1,x2,y2).
2) a=0 default (opaque).

pixel brush

pixel brush(id)

        Returns the pixels of brush id if it of type texture.

pixel brush(id)=p

        Fills the pixels of brush id with p.
Note:
Prefarably do generate pixel(id2)brush(id1) to ovoid overflow.

pixel image

pixel(x1,y1,x2,y2)image(id)

        Returns the list of window pixels (x1,y1,x2,y2) (entire image by default) image id.
Options:
col(r,v,b,a, ...): writes list of pixels in the format:
format("f") according to format("f") (RGBA default).

pixel zbuf

pixel(x,y)zbuf

        Returns the zbuffer value at point(x,y) (coordinate origin in the lower-left screen).

pixel(x,y)zbuf(z)

        Writes the value z at the address z (x, y) of zbuffer.
Note:
pixel(x1,y1,x2,y2) processes the pixels of the window (x1,y1,x2,y2).

See also:

primitives graphiques