From b7226428dfe67051726bfa90b098fa2b7371bb2d Mon Sep 17 00:00:00 2001 From: Amir Hassan Date: Mon, 10 Apr 2023 14:36:19 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 50c06a94d..29e3d0a01 100644 --- a/README.md +++ b/README.md @@ -198,9 +198,9 @@ v2d->nvg([&](const cv::Size& sz) { fontSize(font_size); fontFace("sans-bold"); - fillColor(cv::Scalar(text_color.b() * 255.0f, text_color.g() * 255.0f, text_color.r() * 255.0f, text_alpha * 255.0f)); + fillColor(cv::Scalar(255, 0, 0, 255)); textAlign(NVG_ALIGN_CENTER | NVG_ALIGN_TOP); - text(WIDTH / 2.0, y, hw.c_str(), hw.c_str() + hw.size()); + text(WIDTH / 2.0, HEIGHT / 2.0, hw.c_str(), hw.c_str() + hw.size()); }); ``` @@ -225,7 +225,7 @@ v2d->nvg([&](const cv::Size& sz) { fontSize(font_size); fontFace("sans-bold"); - fillColor(cv::Scalar(text_color.b() * 255.0f, text_color.g() * 255.0f, text_color.r() * 255.0f, text_alpha * 255.0f)); + fillColor(cv::Scalar(255, 0, 0, 255)); textAlign(NVG_ALIGN_CENTER | NVG_ALIGN_TOP); text(WIDTH / 2.0, y, hw.c_str(), hw.c_str() + hw.size()); });