Complete this task as part of your GSoC application if you are applying for the AXIOM Remote related task.
This challenge is mandatory if you apply for T1126
---
Please follow the tasks closely and make sure to adhere to the C++ coding style (see links section for reference).
**Goal**
As addition to the 1 bit images/icon drawing which is basically limited to black/white or monochrome icons (https://github.com/apertus-open-source-cinema/AXIOM-Remote/blob/dev/Firmware/UI/Painter/Painter.cpp#L314) this challenge adds very soft antialiasing to images by using 2 bits and therefore 4 colors with a predefined palette (colors: transparent, light grey, dark grey, black).
This basically means we want to implement simplified anti-aliasing:
{F177091}
**Step 1: Preparations**
- Check out the source code of AXIOM Remote
- **Important**: Don't forget to initialize git sub-modules in the repo, otherwise ImGui errors will occur
- Look through general source code and especially **Firmware** project and learn the structure
- Build the visualizer (**AXIOM_Remote_Firmware_Visualizer**) and play a bit with a firmware to understand it more
- Ask questions either here or on our IRC channel //(please use a dedicated client instead of web interface, to prevent regular disconnects)
Visualizer output:
{F177093}
**Step 2: Create a 2 bit image as C array**
- Verify if this suggested method to create/convert images is suitable if not or there is there a better way please document this way
- Create a new icon with Gimp that uses an indexed color mode with 4 colors
- export this icon in Gimp as *.xbm file, inspect the file in a text editor, verify that the array "pixels" are indeed 2 bits only
- Alternatively convert the images to 2 bit depth C image arrays via online converter (see //Useful Links//)
- Add the data to the firmware in the proper folder
**Step 3: Add Draw2BitIcon() in Painter**
- Add Draw2BitIcon() method to the painter
- Draw an example icon on the home page, take a screenshot and include it in your challenge solution.
**Step 4: Bonus**
- Add unit tests for Draw2BitIcon() method to verify that predefined input also deliver correct output, see examples in FirmwareTest folder, it already contains a few painter tests
- Add parameter to the Draw2BitIcon() method to define the color palette and transparency
---
**Useful Links:**
- Image converter: https://littlevgl.com/image-to-c-array
- C++ coding guidelines (isocpp): https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md
To get in touch with any mentor check the [[ https://www.apertus.org/GSoC-Mentor-Contact-List | Mentor Contact List]].