https://github.com/strilanc/animatrontheterrible
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.
https://github.com/strilanc/animatrontheterrible
Last synced: 11 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/strilanc/animatrontheterrible
- Owner: Strilanc
- Created: 2013-07-29T08:50:44.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-17T08:06:54.000Z (over 12 years ago)
- Last Synced: 2024-04-14T23:21:29.336Z (about 2 years ago)
- Language: C#
- Size: 3.32 MB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```C#
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)
};
```