Skip to content

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


vbmTestPixel2

Systems: VIC20
Parameters: b,b


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

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

Description

Tests a pixel pair on the bitmap. Returns 0 if no pixels, otherwise returns a non-zero value indicated in the position of the pixel pair. Useful for testing multi-color pixels. The x position is constrained to even numbers.

Example

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