mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
[hb-draw] Double sweep gradient subdivision for smoother rendering
Reduce MAX_ANGLE from pi/8 to pi/16, producing ~32 slices per full circle instead of ~16. This reduces visible color banding in sweep gradient approximation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
2965686b15
commit
585be5163e
1 file changed
+1
-1
@@ -304,7 +304,7 @@ static const char *composite_mode_str (hb_paint_composite_mode_t mode)
|
||||
|
||||
/* ===== Sweep gradient decomposition ===== */
|
||||
|
||||
#define MAX_ANGLE (HB_PI / 8.f)
|
||||
#define MAX_ANGLE (HB_PI / 16.f)
|
||||
|
||||
void add_sweep_patch (GString *body,
|
||||
float cx, float cy, float radius,
|
||||
|
||||
Reference in new issue
Block a user