pub fn with_scale_factor<P: Program>( program: P, f: impl Fn(&P::State, Id) -> f32, ) -> impl Program<State = P::State, Message = P::Message, Theme = P::Theme>
Decorates a Program with the given scale factor function.
Program