Function appear

Source
pub fn appear(rect: Rect, look: Appearance) -> Rect
Expand description

Moves and scales rect about its center per an Appearance.

use ferravex_play::tween::Appearance;
use ferravex_render::{Rect, ui::kit::appear};
let r = appear(Rect::new(0., 0., 100., 50.), Appearance { alpha: 1., offset: [0., 10.], scale: 0.5 });
assert_eq!((r.x, r.y, r.w, r.h), (25., 22.5, 50., 25.));