Compatible with:
DOS
Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4 ArmiteH7 Picomite CMM2
Syntax:
colour = PIXEL(x,y)
colour =
PIXEL( x, y [,page_number])
PIXEL x, y [,c]
PIXEL FILL x, y, newcolour
PIXEL(x,y) = colour
Description:
ALL
colour = PIXEL(x,y)
Returns the colour of a pixel on the VGA monitor. 'x' is the horizontal
coordinate and 'y' is the vertical coordinate of the pixel.
CMM2
colour = PIXEL( x, y [,page_number])
Returns the colour of a pixel on the VGA monitor. 'x' is the horizontal
coordinate and 'y' is the vertical coordinate of the pixel.
See the chapter "Basic Drawing Commands" for a definition of the
colours and graphics coordinates.
The optional parameter page number specifies which page is to be read. The
default is the current write page.
Set the pagenumber to FRAMEBUFFER to read from the framebuffer – see the
FRAMEBUFFER command
All except DOS and CMM1 and mono
maximite
PIXEL x, y [,c]
Set a pixel on an attached VGA monitor to a colour.
'x' is the horizontal coordinate and 'y' is the vertical coordinate of the
pixel.
'c' is a 24 bit number specifying the colour.
'c' is optional and if omitted the current foreground colour will be used.
All parameters can be expressed as arrays and the software will plot the number
of pixels as determined by the dimensions of the smallest array.
'x' and 'y' must both be arrays or both be single variables /constants otherwise
an error will be generated. 'c' can be either an arrays or a single variable or
constant.
CMM2 only
PIXEL FILL x, y, newcolour
Implements a flood fill by reading the colour of the pixel at coordinates x,y
and replacing it and the entire area of connected pixels having the same colour
with the new colour “newcolour”
CMM1 and mono maximite
PIXEL(x,y) = colour
Set a pixel on the VGA or composite screen to a colour or inverted (if the
value is -1).
Last edited: 15 December, 2020