Skip to content

title: "vbmTestPixel" description: TRSE built-in method (from IDE help)


vbmTestPixel

Systems: VIC20
Parameters: b,b


[byte] = vbmTestPixel( [byte-X], [byte-Y] );

  • [byte-X] - X position 0 - 159
  • [byte-Y] - Y position 0 - 191

Description

Tests a single pixel on the bitmap. Returns 0 if no pixel, otherwise returns a non-zero value indicated in the position of the pixel.

Example

if (vbmTestPixel(12,10)) then // pixel is present at x=12 and y=10