mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
blur-effect: Use sigma value instead of blur radius
Almost all implementations, including CSS [1] of gaussian blurs use the sigma/standard deviation value as the input parameter, even if they call that value "radius". Since using sigma is more correct mathematically and avoids confusion for people used to other blur implementations, use that parameter here, too. [1] https://www.w3.org/TR/filter-effects-1/#funcdef-filter-blur https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991
This commit is contained in:
parent
d26bb38be9
commit
f351cfa2f7
3 changed files with 43 additions and 44 deletions
|
|
@ -42,9 +42,9 @@ G_DECLARE_FINAL_TYPE (ShellBlurEffect, shell_blur_effect, SHELL, BLUR_EFFECT, Cl
|
|||
|
||||
ShellBlurEffect *shell_blur_effect_new (void);
|
||||
|
||||
int shell_blur_effect_get_blur_radius (ShellBlurEffect *self);
|
||||
void shell_blur_effect_set_blur_radius (ShellBlurEffect *self,
|
||||
int radius);
|
||||
int shell_blur_effect_get_sigma (ShellBlurEffect *self);
|
||||
void shell_blur_effect_set_sigma (ShellBlurEffect *self,
|
||||
int sigma);
|
||||
|
||||
float shell_blur_effect_get_brightness (ShellBlurEffect *self);
|
||||
void shell_blur_effect_set_brightness (ShellBlurEffect *self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue