Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colorAt never functioning #721

Open
TesDevelopment opened this issue Sep 21, 2022 · 0 comments
Open

colorAt never functioning #721

TesDevelopment opened this issue Sep 21, 2022 · 0 comments

Comments

@TesDevelopment
Copy link

TesDevelopment commented Sep 21, 2022

Writing a function to quickly get the colors of a line 1 pixel long 40 pixels wide. No coordinates work when entered into the colorAt function.

Error: Requested coordinates are outside the main screen's dimensions.

(I have two monitors but have tested with one turned off and received the same results)

Expected Behavior

An array should be built containing all color values in the previously mentioned line.

Current Behavior

The following error is spouted.

Error: Requested coordinates are outside the main screen's dimensions.

Steps to Reproduce (for bugs)

1.Take a screenshot of any width and length
2.Attempt to use the colorAt function

Context

`

        const array_load = await screen.capture(710 - (i * 67), 80, 40, 1);
        let pixel_array = [];
        for(let i = 0; i < 40; i++){
            pixel_array.push(array_load.colorAt(i, 1))
        }

`

Your Environment

  • RobotJS version: latest
  • Node.js version: v16.15.0
  • npm version: 6.14.17
  • Operating System: Windows 10 (2 monitors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant