{{QBDLDATE:05-20-2022}} {{QBDLTIME:23:15:41}} The '''POINT''' function returns the pixel [[COLOR]] attribute at a specified graphics coordinate or the current graphic cursor position. ''Color'' {{PageSyntax}} ::::color_attribute% = '''POINT ('''''column%, row%''''')''' ''Graphic cursor position'' {{PageSyntax}} ::::pointer_coordinate% = '''POINT('''{0|1|2|3}''')''' {{Parameters}} Graphic Color syntax: * The [[INTEGER]] ''column'' and ''row'' coordinates designate the pixel position color on the screen to read. * The return value is an [[INTEGER]] palette attribute value or an [[_UNSIGNED]] [[LONG]] [[_RGBA]] 32 bit value in QB64. Graphic cursor position syntax: * The [[INTEGER]] position number can be 0 to 3 depending on the cursor position desired: ** POINT(0) returns the current graphic cursor [[SCREEN]] column pixel coordinate. ** POINT(1) returns the current graphic cursor [[SCREEN]] row pixel coordinate. ** POINT(2) returns the current graphic cursor [[WINDOW]] column position. ** POINT(3) returns the current graphic cursor [[WINDOW]] row position. * If a [[WINDOW]] view port has not been established, the coordinate returned will be the [[SCREEN]] cursor pixel position. * The return value is the current graphic cursor ''column'' or ''row'' pixel position on the [[SCREEN]] or [[WINDOW]]. * Graphic cursor positions returned will be the last ones used in a graphic shape such as a [[CIRCLE]] center point. ''Usage:'' * Use '''[[_SOURCE]]''' first to set the image handle that POINT should read or QB64 will assume the current source image. :: '''{{text|_SOURCE 0|green}}''' 'sets POINT to read the current SCREEN image after reading a previous source image * '''POINT cannot be used in SCREEN 0!''' Use the [[SCREEN (function)|SCREEN]] function to point text character codes and colors in SCREEN 0.