From f8b1d07e7315e53a5aeeb78b643fabbb6c0a4c89 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sun, 6 Mar 2022 19:21:08 +0100 Subject: [PATCH] Readme --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index b2ea6c4..175bab4 100644 --- a/readme.md +++ b/readme.md @@ -59,10 +59,10 @@ bmp.GetPixel(Vector2i(60, 50))[1] = 128; // Assuming image is RGBA std::uint8_t* pixel = bmp.GetPixel(Vector2i(60, 50)); -std::uint8_t* r = pixel[0]; -std::uint8_t* g = pixel[1]; -std::uint8_t* b = pixel[2]; -std::uint8_t* a = pixel[3]; +std::uint8_t r = pixel[0]; +std::uint8_t g = pixel[1]; +std::uint8_t b = pixel[2]; +std::uint8_t a = pixel[3]; ``` ##### Convert between RGB and RGBA