slint/internal/core/software_renderer
Tasuku Suzuki 2fdcca868e
swrenderer: Add radial gradient support (#8980)
Previously, the software renderer only supported linear gradients, with
radial gradients falling back to solid colors. This commit adds full
radial gradient rendering support.

Rename gradient-related types for clarity:
- GradientCommand → LinearGradientCommand
- gradients → linear_gradients
- draw_gradient_line → draw_linear_gradient
- process_gradient → process_linear_gradient

* tests: Add comprehensive screenshot tests for radial gradients

Add test cases for radial gradients including:
- Basic radial gradient with transparency overlay
- Multiple color stops with specific percentages
- Gradient stops beyond 100% range
- Overlapping transparent gradients with alpha blending
- Multiple stops at same position for sharp color transitions
- Edge case with invisible stop at 0%

ROTATION_THRESHOLD set to 600 due to imprecision in gradient calculations
during rotation transformations.
2025-07-28 13:44:36 +02:00
..
fonts swrenderer: Don't overflow for font bigger than 256px 2025-03-25 15:51:18 +01:00
draw_functions.rs swrenderer: Add radial gradient support (#8980) 2025-07-28 13:44:36 +02:00
fixed.rs Fixed Fixed multiplication to work with u16 2025-03-31 14:46:21 +02:00
fonts.rs Janitor: Always use `#![no_std] for runtime lib 2025-01-27 19:22:00 +01:00
minimal_software_window.rs MinimalSoftwareWindow: fix sizing with scale factor 2025-04-11 22:16:23 +02:00
scene.rs swrenderer: Add radial gradient support (#8980) 2025-07-28 13:44:36 +02:00
target_pixel_buffer.rs Add a documentation comment about DrawRectangleArgs::alpha 2025-06-23 15:42:20 +02:00