Finding the RGB pixel values

We will now find the RGB pixel values of the ball by examining different points on it using the following steps:

  1. Open Paint and open the saved image of the ball, as follows:
  1. Next, using the color picker tool, take samples of the color by clicking anywhere on the ball:

The Color 1 box will show the sample of the color that was clicked on. In my case, this is green:

  1. If you click on the Edit Colors option, you ...

Get Hands-On Robotics Programming with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.