-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the `twin_stack_blur()` function to implement Mario's Stack Blur algorithm, which blurs the target pixel map. Additionally, create a test window to evaluate the effect of `twin_stack_blur()`. Implement a shadow pixel map beneath the window with a blur effect to create a frosted glass appearance. The drop shadow effect of the window is only visible when it is on the top layer, ensuring the active window stands out visually. Furthermore, implement the `twin_shadow_border()` function that aims to create darker edge of the active window that give a more dimensional appearance. Ref: https://melatonin.dev/blog/implementing-marios-stack-blur-15-times-in-cpp/ See #34 Signed-off-by: Wei-Hsin Yeh <weihsinyeh168@gmail.com>
- Loading branch information
1 parent
a2becfd
commit a78fe42
Showing
7 changed files
with
450 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.