Skip to main content

interpolate_value

Function interpolate_value 

Source
pub fn interpolate_value(from: &str, to: &str, t: f32) -> String
Expand description

2つの CSS 値を進捗 t で補間する。px/数値/%/色/<n>deg/複数値(空白区切り)に対応。 補間できない場合は t<0.5 で from、それ以外で to を返す(discrete)。