Documentation
¶
Index ¶
- type BaseDrawingTag
- type BlurGaussianTag
- func (t *BlurGaussianTag) Encode(event time.EventTime) string
- func (t *BlurGaussianTag) Equals(tag Tag) bool
- func (t *BlurGaussianTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *BlurGaussianTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type BlurTag
- func (t *BlurTag) Encode(event time.EventTime) string
- func (t *BlurTag) Equals(tag Tag) bool
- func (t *BlurTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *BlurTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type BorderTag
- func (t *BorderTag) Encode(event time.EventTime) string
- func (t *BorderTag) Equals(tag Tag) bool
- func (t *BorderTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *BorderTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type ClipPathTag
- type ClipTag
- type ColorTag
- type ContainerTag
- func (t *ContainerTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
- func (t *ContainerTag) Clone(cloneTags bool) *ContainerTag
- func (t *ContainerTag) Encode(event time.EventTime) string
- func (t *ContainerTag) Equals(tag Tag) bool
- func (t *ContainerTag) FromMatrixTransform(transform math.MatrixTransform) PositioningTag
- func (t *ContainerTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *ContainerTag) HasColor() bool
- func (t *ContainerTag) TransitionClipPath(event Event, clip *shapes.ClipPath) ClipPathTag
- func (t *ContainerTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
- func (t *ContainerTag) TransitionMatrixTransform(event Event, transform math.MatrixTransform) PositioningTag
- func (t *ContainerTag) TransitionShape(event Event, shape shapes.Shape) PathTag
- func (t *ContainerTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *ContainerTag) TryAppend(tag Tag)
- type DrawTag
- type DrawingTag
- type Event
- type FillColorTag
- func (t *FillColorTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
- func (t *FillColorTag) Encode(event time.EventTime) string
- func (t *FillColorTag) Equals(tag Tag) bool
- func (t *FillColorTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *FillColorTag) HasColor() bool
- func (t *FillColorTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
- func (t *FillColorTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type LineColorTag
- func (t *LineColorTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
- func (t *LineColorTag) Encode(event time.EventTime) string
- func (t *LineColorTag) Equals(tag Tag) bool
- func (t *LineColorTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *LineColorTag) HasColor() bool
- func (t *LineColorTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
- func (t *LineColorTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type MatrixTransformTag
- func MatrixTransformTagFromTransformStable(transform math2.MatrixTransform) *MatrixTransformTag
- func MatrixTransformTagFromTransformUnstable(transform math2.MatrixTransform) *MatrixTransformTag
- func NewMatrixTransformTag(transform math2.MatrixTransform, scale math2.Vector2[float64], ...) *MatrixTransformTag
- func (t *MatrixTransformTag) Encode(event time.EventTime) string
- func (t *MatrixTransformTag) Equals(tag Tag) bool
- func (t *MatrixTransformTag) FromMatrixTransform(transform math2.MatrixTransform) PositioningTag
- func (t *MatrixTransformTag) TransitionMatrixTransform(event Event, transform math2.MatrixTransform) PositioningTag
- type PathTag
- type PositionTag
- type PositioningTag
- type RotationTag
- type ScaleTag
- type ShadowTag
- func (t *ShadowTag) Encode(event time.EventTime) string
- func (t *ShadowTag) Equals(tag Tag) bool
- func (t *ShadowTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- func (t *ShadowTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
- type ShearingTag
- type StyleTag
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDrawingTag ¶
func (*BaseDrawingTag) AsShape ¶
func (b *BaseDrawingTag) AsShape() shapes.Shape
func (*BaseDrawingTag) GetCommands ¶
func (b *BaseDrawingTag) GetCommands(scale, precision int) string
type BlurGaussianTag ¶
type BlurGaussianTag struct {
Blur float64
}
func (*BlurGaussianTag) Equals ¶
func (t *BlurGaussianTag) Equals(tag Tag) bool
func (*BlurGaussianTag) FromStyleRecord ¶
func (t *BlurGaussianTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*BlurGaussianTag) TransitionStyleRecord ¶
func (t *BlurGaussianTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type BlurTag ¶
type BlurTag struct {
Blur int64
}
func (*BlurTag) FromStyleRecord ¶
func (t *BlurTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*BlurTag) TransitionStyleRecord ¶
func (t *BlurTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type BorderTag ¶
func (*BorderTag) FromStyleRecord ¶
func (t *BorderTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*BorderTag) TransitionStyleRecord ¶
func (t *BorderTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type ClipPathTag ¶
type ClipPathTag interface { Tag TransitionClipPath(event Event, clip *shapes.ClipPath) ClipPathTag }
type ClipTag ¶
type ClipTag struct { BaseDrawingTag Scale int IsNull bool }
func (*ClipTag) ApplyMatrixTransform ¶
func (t *ClipTag) ApplyMatrixTransform(transform math.MatrixTransform, applyTranslation bool) DrawingTag
func (*ClipTag) TransitionClipPath ¶
func (t *ClipTag) TransitionClipPath(event Event, clip *shapes.ClipPath) ClipPathTag
type ColorTag ¶
type ColorTag interface { StyleTag ApplyColorTransform(transform math.ColorTransform) ColorTag TransitionColor(event Event, transform math.ColorTransform) ColorTag HasColor() bool }
type ContainerTag ¶
type ContainerTag struct { Tags []Tag Transitions map[int64][]Tag BakedTransform types.Option[math.MatrixTransform] }
func ContainerTagFromPathEntry ¶
func ContainerTagFromPathEntry(path shapes.DrawPath, clip types.Option[shapes.ClipPath], colorTransform math.ColorTransform, matrixTransform math.MatrixTransform, bakeMatrixTransforms bool) *ContainerTag
func (*ContainerTag) ApplyColorTransform ¶
func (t *ContainerTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
func (*ContainerTag) Clone ¶
func (t *ContainerTag) Clone(cloneTags bool) *ContainerTag
func (*ContainerTag) Equals ¶
func (t *ContainerTag) Equals(tag Tag) bool
func (*ContainerTag) FromMatrixTransform ¶
func (t *ContainerTag) FromMatrixTransform(transform math.MatrixTransform) PositioningTag
func (*ContainerTag) FromStyleRecord ¶
func (t *ContainerTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*ContainerTag) HasColor ¶
func (t *ContainerTag) HasColor() bool
func (*ContainerTag) TransitionClipPath ¶
func (t *ContainerTag) TransitionClipPath(event Event, clip *shapes.ClipPath) ClipPathTag
func (*ContainerTag) TransitionColor ¶
func (t *ContainerTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
func (*ContainerTag) TransitionMatrixTransform ¶
func (t *ContainerTag) TransitionMatrixTransform(event Event, transform math.MatrixTransform) PositioningTag
func (*ContainerTag) TransitionShape ¶
func (t *ContainerTag) TransitionShape(event Event, shape shapes.Shape) PathTag
func (*ContainerTag) TransitionStyleRecord ¶
func (t *ContainerTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*ContainerTag) TryAppend ¶
func (t *ContainerTag) TryAppend(tag Tag)
type DrawTag ¶
type DrawTag struct { BaseDrawingTag Scale int }
func (*DrawTag) ApplyMatrixTransform ¶
func (t *DrawTag) ApplyMatrixTransform(transform math.MatrixTransform, applyTranslation bool) DrawingTag
type DrawingTag ¶
type DrawingTag interface { Tag ApplyMatrixTransform(transform math.MatrixTransform, applyTranslation bool) DrawingTag AsShape() shapes.Shape GetCommands(scale, precision int) string }
type FillColorTag ¶
func (*FillColorTag) ApplyColorTransform ¶
func (t *FillColorTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
func (*FillColorTag) Equals ¶
func (t *FillColorTag) Equals(tag Tag) bool
func (*FillColorTag) FromStyleRecord ¶
func (t *FillColorTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*FillColorTag) HasColor ¶
func (t *FillColorTag) HasColor() bool
func (*FillColorTag) TransitionColor ¶
func (t *FillColorTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
func (*FillColorTag) TransitionStyleRecord ¶
func (t *FillColorTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type LineColorTag ¶
func (*LineColorTag) ApplyColorTransform ¶
func (t *LineColorTag) ApplyColorTransform(transform math.ColorTransform) ColorTag
func (*LineColorTag) Equals ¶
func (t *LineColorTag) Equals(tag Tag) bool
func (*LineColorTag) FromStyleRecord ¶
func (t *LineColorTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*LineColorTag) HasColor ¶
func (t *LineColorTag) HasColor() bool
func (*LineColorTag) TransitionColor ¶
func (t *LineColorTag) TransitionColor(event Event, transform math.ColorTransform) ColorTag
func (*LineColorTag) TransitionStyleRecord ¶
func (t *LineColorTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type MatrixTransformTag ¶
type MatrixTransformTag struct { Scale ScaleTag Rotation RotationTag Shearing ShearingTag Transform math2.MatrixTransform }
func MatrixTransformTagFromTransformStable ¶
func MatrixTransformTagFromTransformStable(transform math2.MatrixTransform) *MatrixTransformTag
MatrixTransformTagFromTransformStable Finds matching ASS \fscx, \fscy, \frx, \fry, \frz, \fax, \fay for a given math.MatrixTransform Numerically stable implementation by MrSmile
func MatrixTransformTagFromTransformUnstable ¶
func MatrixTransformTagFromTransformUnstable(transform math2.MatrixTransform) *MatrixTransformTag
MatrixTransformTagFromTransformUnstable Finds matching ASS \fscx, \fscy, \frx, \fry, \frz, \fax, \fay for a given math.MatrixTransform Numerically unstable implementation by Oneric
func NewMatrixTransformTag ¶
func NewMatrixTransformTag(transform math2.MatrixTransform, scale math2.Vector2[float64], rotationX, rotationY, rotationZ float64, shear math2.Vector2[float64]) *MatrixTransformTag
func (*MatrixTransformTag) Encode ¶
func (t *MatrixTransformTag) Encode(event time.EventTime) string
func (*MatrixTransformTag) Equals ¶
func (t *MatrixTransformTag) Equals(tag Tag) bool
func (*MatrixTransformTag) FromMatrixTransform ¶
func (t *MatrixTransformTag) FromMatrixTransform(transform math2.MatrixTransform) PositioningTag
func (*MatrixTransformTag) TransitionMatrixTransform ¶
func (t *MatrixTransformTag) TransitionMatrixTransform(event Event, transform math2.MatrixTransform) PositioningTag
type PositionTag ¶
func (*PositionTag) Equals ¶
func (t *PositionTag) Equals(tag Tag) bool
func (*PositionTag) FromMatrixTransform ¶
func (t *PositionTag) FromMatrixTransform(transform math2.MatrixTransform) PositioningTag
func (*PositionTag) TransitionMatrixTransform ¶
func (t *PositionTag) TransitionMatrixTransform(event Event, transform math2.MatrixTransform) PositioningTag
type PositioningTag ¶
type PositioningTag interface { Tag TransitionMatrixTransform(event Event, transform math.MatrixTransform) PositioningTag FromMatrixTransform(transform math.MatrixTransform) PositioningTag }
type RotationTag ¶
type RotationTag struct {
RotationX, RotationY, RotationZ float64
}
func (*RotationTag) Equals ¶
func (t *RotationTag) Equals(tag Tag) bool
func (*RotationTag) FromMatrixTransform ¶
func (t *RotationTag) FromMatrixTransform(transform math2.MatrixTransform) PositioningTag
func (*RotationTag) TransitionMatrixTransform ¶
func (t *RotationTag) TransitionMatrixTransform(event Event, transform math2.MatrixTransform) PositioningTag
type ScaleTag ¶
func (*ScaleTag) FromMatrixTransform ¶
func (t *ScaleTag) FromMatrixTransform(transform math.MatrixTransform) PositioningTag
func (*ScaleTag) TransitionMatrixTransform ¶
func (t *ScaleTag) TransitionMatrixTransform(event Event, transform math.MatrixTransform) PositioningTag
type ShadowTag ¶
type ShadowTag struct {
Depth float64
}
func (*ShadowTag) FromStyleRecord ¶
func (t *ShadowTag) FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
func (*ShadowTag) TransitionStyleRecord ¶
func (t *ShadowTag) TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag
type ShearingTag ¶
func (*ShearingTag) Equals ¶
func (t *ShearingTag) Equals(tag Tag) bool
func (*ShearingTag) FromMatrixTransform ¶
func (t *ShearingTag) FromMatrixTransform(transform math.MatrixTransform) PositioningTag
func (*ShearingTag) TransitionMatrixTransform ¶
func (t *ShearingTag) TransitionMatrixTransform(event Event, transform math.MatrixTransform) PositioningTag
type StyleTag ¶
type StyleTag interface { Tag TransitionStyleRecord(event Event, record shapes.StyleRecord, transform math.MatrixTransform) StyleTag FromStyleRecord(record shapes.StyleRecord, transform math.MatrixTransform) StyleTag }
Click to show internal directories.
Click to hide internal directories.