Skip to content

Commit

Permalink
Update Colors.md
Browse files Browse the repository at this point in the history
Add system libraries include for the small example to compile
  • Loading branch information
bcheronn authored Nov 10, 2023
1 parent 93ac4af commit 5505912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ In this small example we will create a white image:

```c
#include "MLX42/MLX42.h"
#include <stdlib.h>
#include <string.h>

// Bytes Per Pixel. Since each pixel is represented as an integer, it will be four bytes for four channels.
#define BPP sizeof(int32_t)
Expand Down Expand Up @@ -97,4 +99,4 @@ int32_t main(void)
return (EXIT_SUCCESS);
}

```
```

0 comments on commit 5505912

Please sign in to comment.