{"type":"rich","blog_url":"https://potisan-programming-memo.hatenablog.jp/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/02/15/233657","image_url":null,"author_url":"https://blog.hatena.ne.jp/potisan/","author_name":"potisan","title":"C++20 Win32 API\u3092\u4f7f\u7528\u3057\u305fHLS\u8272\u7a7a\u9593\u30af\u30e9\u30b9","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F02%2F15%2F233657\" title=\"C++20 Win32 API\u3092\u4f7f\u7528\u3057\u305fHLS\u8272\u7a7a\u9593\u30af\u30e9\u30b9 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Win32 API\u3001\u5177\u4f53\u7684\u306b\u306fShell lightweight utility functions\uff08Microsoft Docs\uff09\u306eColorHLSToRGB\u95a2\u6570\u3001ColotRGBToHLS\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305fHLS\u8272\u7a7a\u9593\u30af\u30e9\u30b9\u3067\u3059\u3002 std::clamp\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u52d5\u4f5c\u74b0\u5883\u3092C++20\u3068\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u9069\u5f53\u306b\u66f8\u304d\u63db\u3048\u308c\u3070C++17\u4ee5\u524d\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 // win32_hls_color.hpp // \u52d5\u4f5c\u78ba\u8a8d\u74b0\u5883\uff1aC++ 20 #include <algorithm> #include <stdexcept> #include <tuple> #include <shlwap\u2026","version":"1.0","published":"2021-02-15 23:36:57","provider_url":"https://hatena.blog","width":"100%","categories":["C++","Windows"],"provider_name":"Hatena Blog","height":"190"}