Avalonia Graphics Animation logo

Avalonia Graphics Animation

Community
linuxdevel
avalonia-graphics-animation

Use when working with Avalonia brushes, transforms, geometry, clipping, animations, transitions, or bitmap effects. Covers SolidColorBrush, LinearGradientBrush, RadialGradientBrush, ConicGradientBrush, ImageBrush, VisualBrush, RenderTransform, shapes, Path geometry, clipping, BoxShadow, keyframe Animation class, property Transitions, and page transitions.

Overview

Publisherlinuxdevel
RepositoryAvalonia-skills
Skill nameavalonia-graphics-animation
Stars
50
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by linuxdevel on GitHub. Read the source before you install it.

Installation

Install the Avalonia Graphics Animation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-graphics-animation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/linuxdevel/Avalonia-skills.git /tmp/Avalonia-skills
mkdir -p .claude/skills
cp -r /tmp/Avalonia-skills/skills/avalonia/avalonia-graphics-animation .claude/skills/avalonia-graphics-animation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Avalonia Graphics Animation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Avalonia Graphics Animation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Avalonia Graphics Animation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Avalonia Graphics & Animation

Overview

Avalonia renders via Skia (the only built-in renderer in 12; Direct2D1 was removed). All visual effects are cross-platform. Animations use keyframe Animation class or property Transitions.

Brushes

BrushXAMLUse
SolidColorBrush"#FF5722" or "Red"Solid fill/stroke
LinearGradientBrush<LinearGradientBrush>Linear gradient
RadialGradientBrush<RadialGradientBrush>Radial gradient
ConicGradientBrush<ConicGradientBrush>Conic gradient
ImageBrush<ImageBrush>Tiled/stretched image fill
VisualBrush<VisualBrush>Render control as brush
xml
<Rectangle Width="200" Height="100">
    <Rectangle.Fill>
        <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%">
            <GradientStop Color="#FF5722" Offset="0"/>
            <GradientStop Color="#9C27B0" Offset="1"/>
        </LinearGradientBrush>
    </Rectangle.Fill>
</Rectangle>
xml
<Rectangle Width="200" Height="200">
    <Rectangle.Fill>
        <RadialGradientBrush GradientOrigin="50%,50%" RadiusX="50%" RadiusY="50%">
            <GradientStop Color="Yellow" Offset="0"/>
            <GradientStop Color="Red" Offset="1"/>
        </RadialGradientBrush>
    </Rectangle.Fill>
</Rectangle>

RadialGradientBrush.Radius was removed in 12 — use RadiusX/RadiusY (12.0+). (11.x: Radius="50%".)

Opacity shorthand: Opacity="0.5" on any control (applies to whole subtree).

Transforms

xml
<Rectangle RenderTransform="rotate(45)" Width="100" Height="100"/>
xml
<Rectangle>
    <Rectangle.RenderTransform>
        <TransformGroup>
            <RotateTransform Angle="45"/>
            <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
            <TranslateTransform X="20" Y="10"/>
            <SkewTransform AngleX="10"/>
        </TransformGroup>
    </Rectangle.RenderTransform>
</Rectangle>

RenderTransformOrigin="0.5,0.5" — pivot point (0–1 relative to control bounds).

String shorthand syntax: rotate(deg), scale(x,y), translate(x,y), skew(x,y), matrix(a,b,c,d,e,f).

Geometry / Shapes

Shapes (draw themselves): Rectangle, Ellipse, Line, Polyline, Polygon, Path

xml
<Path Fill="CornflowerBlue" Stroke="Navy" StrokeThickness="2"
      Data="M 50,0 L 100,100 L 0,100 Z"/>
<Ellipse Fill="Red" Width="80" Height="60"/>
<Line StartPoint="0,0" EndPoint="100,100" Stroke="Black" StrokeThickness="2"/>

Geometry (reusable shape data): EllipseGeometry, RectangleGeometry, PathGeometry, CombinedGeometry, GeometryGroup

xml
<Path>
    <Path.Data>
        <CombinedGeometry GeometryCombineMode="Xor">
            <CombinedGeometry.Geometry1>
                <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50"/>
            </CombinedGeometry.Geometry1>
            <CombinedGeometry.Geometry2>
                <EllipseGeometry Center="80,50" RadiusX="50" RadiusY="50"/>
            </CombinedGeometry.Geometry2>
        </CombinedGeometry>
    </Path.Data>
</Path>

Clipping

xml
<Border ClipToBounds="True" CornerRadius="8">
    <Image Source="..." Stretch="UniformToFill"/>
</Border>

Custom clip geometry:

xml
<Rectangle Width="100" Height="100" Fill="Red">
    <Rectangle.Clip>
        <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50"/>
    </Rectangle.Clip>
</Rectangle>

Shadows

BoxShadow only on Border:

xml
<Border BoxShadow="0 4 8 0 #40000000" CornerRadius="8" Background="White">
    <TextBlock Text="Shadowed"/>
</Border>

Multiple shadows:

xml
<Border BoxShadow="0 2 4 0 #20000000, 0 8 16 0 #10000000" CornerRadius="8"/>

Format: offsetX offsetY blur spread color [inset]

Animations (Keyframe)

xml
<Window.Styles>
    <Style Selector="Button.spin">
        <Style.Animations>
            <Animation Duration="0:0:1" IterationCount="INFINITE" PlaybackDirection="Normal">
                <KeyFrame Cue="0%">
                    <Setter Property="RenderTransform" Value="rotate(0)"/>
                </KeyFrame>
                <KeyFrame Cue="100%">
                    <Setter Property="RenderTransform" Value="rotate(360)"/>
                </KeyFrame>
            </Animation>
        </Style.Animations>
    </Style>
</Window.Styles>

Animation with easing and delay:

xml
<Animation Duration="0:0:0.5" Delay="0:0:0.1" FillMode="Forward" Easing="CubicEaseOut">
    <KeyFrame Cue="0%">
        <Setter Property="Opacity" Value="0"/>
        <Setter Property="RenderTransform" Value="translateY(-20px)"/>
    </KeyFrame>
    <KeyFrame Cue="100%">
        <Setter Property="Opacity" Value="1"/>
        <Setter Property="RenderTransform" Value="translateY(0)"/>
    </KeyFrame>
</Animation>
PropertyValues
Durationh:m:s format
Delayh:m:s format
IterationCountnumber or INFINITE
PlaybackDirectionNormal / Reverse / Alternate / AlternateReverse
FillModeNone / Forward / Backward / Both
EasingLinearEasing, CubicEaseIn/Out/InOut, BounceEaseOut, SplineEasing, etc.
PlaybackBehavior (12.0+)Auto / Always / OnlyIfVisible — see below

Trigger animation from code:

csharp
var animation = new Animation
{
    Duration = TimeSpan.FromSeconds(0.3),
    FillMode = FillMode.Forward,
    Children =
    {
        new KeyFrame { Cue = Cue.Parse("0%"), Setters = { new Setter(OpacityProperty, 0.0) } },
        new KeyFrame { Cue = Cue.Parse("100%"), Setters = { new Setter(OpacityProperty, 1.0) } }
    }
};
await animation.RunAsync(myControl);

(12.0+) Style animations no longer tick while the control is hidden (IsVisible=false / not in the visual tree). To keep them running set PlaybackBehavior="Always" on the Animation:

xml
<Animation Duration="0:0:1" IterationCount="INFINITE" PlaybackBehavior="Always"> ... </Animation>

Easing/animator renames (12.0+): CubicBezierEasing → SplineEasing (custom cubic-bezier curve); CustomAnimatorBase/CustomAnimatorBase<T> → InterpolatingAnimator<T> for custom animators. (11.x: the old names, obsolete in late 11.x, removed in 12.)

Transitions (Property Change)

Smooth property changes on value set:

xml
<Border Background="Blue">
    <Border.Transitions>
        <Transitions>
            <BrushTransition Property="Background" Duration="0:0:0.3"/>
            <DoubleTransition Property="Opacity" Duration="0:0:0.2" Easing="CubicEaseOut"/>
            <TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.3"/>
        </Transitions>
    </Border.Transitions>
</Border>
Transition TypeProperty Types
BrushTransitionIBrush
ColorTransitionColor
DoubleTransitiondouble
FloatTransitionfloat
IntegerTransitionint
PointTransitionPoint
SizeTransitionSize
ThicknessTransitionThickness
TransformOperationsTransitionITransform / string transform
VectorTransitionVector

In styles (apply to all matching controls):

xml
<Style Selector="Button">
    <Setter Property="Transitions">
        <Transitions>
            <DoubleTransition Property="Opacity" Duration="0:0:0.15"/>
        </Transitions>
    </Setter>
</Style>

Text Rendering & Letter Spacing (12.0+)

xml
<TextBlock Text="Spaced" TextElement.LetterSpacing="2" />   <!-- inherited attached property; TextBlock LetterSpacing="2" still works in XAML -->
<Panel TextOptions.TextRenderingMode="Antialias" />
11.x12.0+
RenderOptions.TextRenderingModeTextOptions.TextRenderingMode (TextOptions also has TextHintingMode, BaselinePixelAlignment)
TextBlock.LetterSpacingProperty (C#)TextElement.LetterSpacingProperty

Custom Drawing & Composition (12.0+ changes)

  • DrawingContext.PushPreTransform / PushPostTransform / PushTransformContainer removed → context.PushTransform(matrix).
  • CompositionVisual.Translation added (12.0+) for compositor-driven offset animations without a layout pass.

Rendering Performance (12.1+)

  • Stencil buffers on by default (more clipping hardware-accelerated).
  • Multiple dirty-rect clipping off by default (cheaper than clipping on discrete GPUs).
  • X11 (and Windows with non-WinUIComposition render modes) renders at monitor refresh rate, not capped at 60 FPS. Time-based animations are unaffected; CPU/GPU use may rise.

Page Transitions (Carousel/Navigation)

xml
<Carousel.PageTransition>
    <PageSlide Duration="0:0:0.35" Orientation="Horizontal"/>
</Carousel.PageTransition>
xml
<Carousel.PageTransition>
    <CrossFade Duration="0:0:0.25"/>
</Carousel.PageTransition>

Composite:

xml
<Carousel.PageTransition>
    <CompositePageTransition>
        <PageSlide Duration="0:0:0.3" Orientation="Horizontal"/>
        <CrossFade Duration="0:0:0.3"/>
    </CompositePageTransition>
</Carousel.PageTransition>

Community Graphics Libraries

LibraryNuGetPurpose
Svg.SkiaSvg.SkiaSVG rendering in Avalonia via Skia
LiveCharts2LiveChartsCore.SkiaSharpView.AvaloniaAnimated, interactive charts and gauges
ScottPlotScottPlot.AvaloniaFast data plotting
OxyPlotOxyPlot.AvaloniaScientific plotting
PanAndZoomPanAndZoomPan/zoom container with Skia backend
Aura3DGitHub: CeSun/Aura3DLightweight 3D rendering control
GoDiagramNorthwoods.GoAvaloniaInteractive diagram/graph control
AvaloniaGraphControlAvaloniaGraphControlAuto-layout graph panel (Microsoft MSAGL)
Core2DGitHub: wieslawsoltes/Core2D2D diagram editor library

SVG in Avalonia

xml
<!-- NuGet: Svg.Skia -->
<Image>
    <Image.Source>
        <svg:SvgImage Source="avares://MyApp/Assets/icon.svg"/>
    </Image.Source>
</Image>

Or use SvgImage control directly from Svg.Skia.Avalonia package.

Common Mistakes

  • Transitions only fire on property changes — not on initial value set; hardcoded initial value + Transition won't animate on load
  • RenderTransform="rotate(45)" string syntax — no spaces inside parentheses; rotate( 45 ) fails
  • BoxShadow only on Border — not on arbitrary controls like Grid or StackPanel
  • Hidden control, animation frozen (12.0+) — set PlaybackBehavior="Always"
  • Animation Cue must be percent string — "0%" and "100%", not 0 or 1.0
  • FillMode="None" (default) reverts after animation — use FillMode="Forward" to hold end state
  • IterationCount="INFINITE" is all caps — Infinite or infinite won't parse

Frequently asked questions

What does the Avalonia Graphics Animation AI skill do?

Use when working with Avalonia brushes, transforms, geometry, clipping, animations, transitions, or bitmap effects. Covers SolidColorBrush, LinearGradientBrush, RadialGradientBrush, ConicGradientBrush, ImageBrush, VisualBrush, RenderTransform, shapes, Path geometry, clipping, BoxShadow, keyframe Animation class, property Transitions, and page transitions.

Why use Avalonia Graphics Animation on TypingMind?

Because you install it once and use it with any model. Avalonia Graphics Animation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Avalonia Graphics Animation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-graphics-animation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Avalonia Graphics Animation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Avalonia Graphics Animation?

As many as you like. As long as a model supports skills, you can use Avalonia Graphics Animation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Avalonia Graphics Animation AI skill free?

Yes. It is published on GitHub by linuxdevel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇