Skip to content

Creates and records visualizations. Warning: the code is not cleaned up or intended to be readable/usable by others, as it is made up of many layers of experimentation and hackery.

rt2yrru/AnimatronTheTerrible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnimatronTheTerrible

This is the experimental and hacky code I use to hack together visualizations for blog posts. It's not particularly efficient, and it's not particularly usable.

The general idea is to define and transform mappings from times to values, and link those mappings to controls on the canvas.

For example, adjusting the appropriate line in MainWindow to the following will show a blue line spinning like a clock hand:

var animation = new Animation {
    new LineSegmentDesc(
        pos: Ani.Time.Select(t => new Point(100,100).Sweep(new Vector(Math.Cos(t.TotalSeconds), Math.Sin(t.TotalSeconds))*100)),
        stroke: Brushes.Blue)
};

About

Creates and records visualizations. Warning: the code is not cleaned up or intended to be readable/usable by others, as it is made up of many layers of experimentation and hackery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%