Type Alias read_fonts::tables::colr::PaintVarSweepGradient
source · pub type PaintVarSweepGradient<'a> = TableRef<'a, PaintVarSweepGradientMarker>;
Expand description
PaintVarSweepGradient table
Aliased Type§
struct PaintVarSweepGradient<'a> { /* private fields */ }
Implementations§
source§impl<'a> PaintVarSweepGradient<'a>
impl<'a> PaintVarSweepGradient<'a>
sourcepub fn color_line_offset(&self) -> Offset24
pub fn color_line_offset(&self) -> Offset24
Offset to VarColorLine table.
sourcepub fn color_line(&self) -> Result<VarColorLine<'a>, ReadError>
pub fn color_line(&self) -> Result<VarColorLine<'a>, ReadError>
Attempt to resolve color_line_offset
.
sourcepub fn start_angle(&self) -> F2Dot14
pub fn start_angle(&self) -> F2Dot14
Start of the angular range of the gradient, 180° in counter-clockwise degrees per 1.0 of value. For variation, use varIndexBase + 2.
sourcepub fn end_angle(&self) -> F2Dot14
pub fn end_angle(&self) -> F2Dot14
End of the angular range of the gradient, 180° in counter-clockwise degrees per 1.0 of value. For variation, use varIndexBase + 3.
sourcepub fn var_index_base(&self) -> u32
pub fn var_index_base(&self) -> u32
Base index into DeltaSetIndexMap.