mirror of
https://github.com/typst/typst
synced 2025-06-08 13:16:24 +08:00
Update precision again
This commit is contained in:
parent
a51c38a6ce
commit
945b72a207
@ -358,12 +358,12 @@ fn convert_gradient(
|
|||||||
|
|
||||||
// Precision:
|
// Precision:
|
||||||
// - On an even color, insert a stop every 90deg
|
// - On an even color, insert a stop every 90deg
|
||||||
// - For a hue-based color space, insert 50 stops minimum
|
// - For a hue-based color space, insert 200 stops minimum
|
||||||
// - On any other, insert 20 stops minimum
|
// - On any other, insert 20 stops minimum
|
||||||
let max_dt = if c0 == c1 {
|
let max_dt = if c0 == c1 {
|
||||||
0.25
|
0.25
|
||||||
} else if conic.space.hue_index().is_some() {
|
} else if conic.space.hue_index().is_some() {
|
||||||
0.02
|
0.005
|
||||||
} else {
|
} else {
|
||||||
0.05
|
0.05
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user