Siv3D / OpenSiv3D

C++20 framework for creative coding 🎮🎨🎹 / Cross-platform support (Windows, macOS, Linux, and the Web)
https://siv3d.github.io/
MIT License
981 stars 135 forks source link

特定箇所をハイライト関数が欲しい #1232

Open tayu-t opened 1 month ago

tayu-t commented 1 month ago

追加する機能の内容 | Describe the solution you'd like 画面のある場所以外をその場所から離れるほど黒くグラデーションする機能が欲しい その機能の追加によって解決する問題 | Is your feature request related to a problem? Please describe. ローグライクゲームなどで廊下に出た際、プレイヤーの視界を遮る機能を実装できる 備考 | Additional context 今現在は以下のようドーナッツを重ねるしかない

Circle{ Cursor::Pos(), 250}.drawArc(0_deg, 360_deg, 150, 0, HSV(0, 0, 0, 0.54)); Circle{ Cursor::Pos(), 1600}.drawArc(0_deg, 360_deg, 1350, 0, HSV(0, 0, 0, 0.78));

スクリーンショット 2024-06-08 152413

tayu-t commented 1 month ago

それっぽいのはできました https://scrapbox.io/tayu-t0422/%E6%8C%87%E5%AE%9A%E7%AE%87%E6%89%80%E3%82%92%E3%81%84%E3%81%84%E6%84%9F%E3%81%98%E3%81%AB%E7%85%A7%E3%82%89%E3%81%99