summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-04-17 22:20:04 +0200
committerGitHub <noreply@github.com>2023-04-17 22:20:04 +0200
commit3db40355a0232bd8f22faa64f09a8b3c122106ff (patch)
tree6d8787cf2f1bb7d2d939ae2d53db9988fcd860b8 /doc
parent5625399680a54bd481c1dec580da1ce4e7d0e58d (diff)
parent2ef20045b1282369585c3395ff9f9ae418394817 (diff)
downloadredot-engine-3db40355a0232bd8f22faa64f09a8b3c122106ff.tar.gz
Merge pull request #76132 from davthedev/stylebox-flat-antialiasing-fix
Fix blurry borders on antialiased StyleBoxFlat
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/StyleBoxFlat.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/StyleBoxFlat.xml b/doc/classes/StyleBoxFlat.xml
index 20b9da8ea6..d5ab282037 100644
--- a/doc/classes/StyleBoxFlat.xml
+++ b/doc/classes/StyleBoxFlat.xml
@@ -103,8 +103,9 @@
Antialiasing draws a small ring around the edges, which fades to transparency. As a result, edges look much smoother. This is only noticeable when using rounded corners or [member skew].
[b]Note:[/b] When using beveled corners with 45-degree angles ([member corner_detail] = 1), it is recommended to set [member anti_aliasing] to [code]false[/code] to ensure crisp visuals and avoid possible visual glitches.
</member>
- <member name="anti_aliasing_size" type="float" setter="set_aa_size" getter="get_aa_size" default="0.625">
- This changes the size of the faded ring. Higher values can be used to achieve a "blurry" effect.
+ <member name="anti_aliasing_size" type="float" setter="set_aa_size" getter="get_aa_size" default="1.0">
+ This changes the size of the antialiasing effect. [code]1.0[/code] is recommended for an optimal result at 100% scale, identical to how rounded rectangles are rendered in web browsers and most vector drawing software.
+ [b]Note:[/b] Higher values may produce a blur effect but can also create undesired artifacts on small boxes with large-radius corners.
</member>
<member name="bg_color" type="Color" setter="set_bg_color" getter="get_bg_color" default="Color(0.6, 0.6, 0.6, 1)">
The background color of the stylebox.