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.

FieldTypeMeaning
PlacedoubleWhere the color lies along the gradient, 0 to 1. Group 463.
Colorstd::optional<int>The AutoCAD Color Index of the color, when it has one. Group 63.
Rgbstd::optional<int>The true color, as 0xRRGGBB, when it has one. Group 421.

struct Gradient

The gradient a HATCH is filled with, from R2004.

FieldTypeMeaning
Shownint0 a solid fill, 1 a gradient. Group 450.
ReservedintReserved by AutoCAD. Group 451.
AngledoubleThe rotation of the gradient, in radians. Group 460.
ShiftdoubleHow far the gradient is shifted off its center, 0 to 1. Group 461.
Singleint1 when the gradient runs from one color, 0 when from two. Group 452.
TintdoubleHow far a gradient of one color is tinted, 0 to 1. Group 462.
Stopsstd::vector<Stop>The colors; group 453 counts them.
Namestd::stringThe name of the gradient, such as LINEAR or SPHERICAL. Group 470.