#graphics #presentation

bin+lib ytesrev

A presentation tool written in rust, based on sdl2

2 releases

0.1.1 Sep 6, 2018
0.1.0 Aug 17, 2018

#142 in #graphics

Download history 17/week @ 2018-08-22 2/week @ 2018-08-29 4/week @ 2018-09-05 16/week @ 2018-09-12 15/week @ 2018-09-19 4/week @ 2018-09-26 26/week @ 2018-10-03 7/week @ 2018-10-10 24/week @ 2018-10-17 11/week @ 2018-10-24 2/week @ 2018-10-31 36/week @ 2018-11-07

9 downloads per month

MIT license

1.5MB
2K SLoC

ytesrev

showcase (higher quality in real life, gif looks like trash thanks to compression and me not knowing how to make it better)

This is a presentation tool inspired by 3blue1brown's tool manim. Currently it supports rendering LaTeX files, relatively simple layout, reading PNGs among other things.

Differences to manim

The biggest difference is the goal of the two programs. Manim is made to render a video, while ytesrev is made to work in live situations where reactivity and dynamicity are valuable. For example, in manim, screen size and timing are pretty much constant, where ytesrev has to have a dynamic layout engine and an event system.

Usage

Check out the src/example/ folder.

Project structure

  • src/anchor/: To keep things anchored to one side of the screen
  • src/ditherer/: To create those cool text 'whoosh' effects
  • src/drawable/ Abstract definitions of drawable objects as well as drawing positions
  • src/empty/: The empty object
  • src/image/: Loading PNGs
  • src/latex/: Rendering LaTeX expressions
  • src/layout/: Definitions and implementations of layouts (stacking and splitting)
  • src/margin/: To give some object a margin
  • src/scene/: Abstract definitions of a scene (slide) and a wrapper for Drawables
  • src/solid/: A rectangle of a solid color
  • src/window/: Contains the WindowManager which is responsible for creating the window, managing events and timings and keeping track of the slides
  • src/withsize/: Give an object a constant size

Dependencies

~4MB
~79K SLoC