Theme Catppuccin
Make yourself at homeCatppuccin

A softer light for long learning sessions.

Appearance

Loading your preference…

Dark palette

Choose a dark palette to try it.

Light uses Latte. Your choices stay in this browser.

Back to your source shelf

Inside the companion

Build your studio

Two small CMake checkpoints: one executable, then a library with tests and presets.

Project files 9

Consume your own library

Call the checker API and print a few known intensities.

12 lines main.cpp
#include "studio/checker.hpp"
#include <iostream>

int main() {
    std::cout << "checker: "
              << static_cast<int>(studio::shade(0, 0)) << ' '
              << static_cast<int>(studio::shade(2, 0)) << ' '
              << static_cast<int>(studio::shade(2, 2)) << '\n';
    std::cout.flush();
    return std::cout ? 0 : 1;
}

This is the file included with the course. Copy and download give you its complete source.

Taking your work offline? Download all course companions