Entities
entities/ hatch/ gradient
#include "dxfio/entities/hatch/gradient.hpp"In DxfIO::Entities
struct Stop
A color of a gradient, and where along the gradient it lies.
| Field | Type | Meaning |
|---|---|---|
Place | double | Where the color lies along the gradient, 0 to 1. Group 463. |
Color | std::optional<int> | The AutoCAD Color Index of the color, when it has one. Group 63. |
Rgb | std::optional<int> | The true color, as 0xRRGGBB, when it has one. Group 421. |
struct Gradient
The gradient a HATCH is filled with, from R2004.
| Field | Type | Meaning |
|---|---|---|
Shown | int | 0 a solid fill, 1 a gradient. Group 450. |
Reserved | int | Reserved by AutoCAD. Group 451. |
Angle | double | The rotation of the gradient, in radians. Group 460. |
Shift | double | How far the gradient is shifted off its center, 0 to 1. Group 461. |
Single | int | 1 when the gradient runs from one color, 0 when from two. Group 452. |
Tint | double | How far a gradient of one color is tinted, 0 to 1. Group 462. |
Stops | std::vector<Stop> | The colors; group 453 counts them. |
Name | std::string | The name of the gradient, such as LINEAR or SPHERICAL. Group 470. |