> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cuse.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pixel Color

> Retrieves the RGB color values of a pixel at the specified coordinates.



## OpenAPI

````yaml api-reference/openapi.json post /api/display/pixel_color
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: http://localhost:4242/{computer_name}
    description: Local development server
    variables:
      computer_name:
        default: your-computer-name
        description: Computer name
security: []
paths:
  /api/display/pixel_color:
    post:
      tags:
        - display
      summary: Get Pixel Color
      description: Retrieves the RGB color values of a pixel at the specified coordinates.
      operationId: getPixelColor
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PixelColorRequest'
              description: Pixel coordinates
        required: true
      responses:
        '200':
          description: Successfully retrieved pixel color
          content:
            application/json:
              schema:
                prefixItems:
                  - type: integer
                  - type: integer
                  - type: integer
                type: array
                maxItems: 3
                minItems: 3
                title: Response Getpixelcolor
              example:
                - 255
                - 128
                - 0
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    PixelColorRequest:
      properties:
        x:
          type: integer
          title: X
          description: X coordinate of the pixel
          example: 100
        'y':
          type: integer
          title: 'Y'
          description: Y coordinate of the pixel
          example: 100
        display_num:
          type: integer
          title: Display Num
          description: Display number to target
          default: 1
          example: 1
      type: object
      required:
        - x
        - 'y'
      title: PixelColorRequest
      example:
        display_num: 1
        x: 100
        'y': 100
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````