Rename translucent to transparentize and mixed to mix

This commit is contained in:
Olivier Goffart 2023-06-01 16:12:28 +02:00 committed by Olivier Goffart
parent 64ad1ce357
commit 4845241ebf
13 changed files with 64 additions and 64 deletions

View file

@ -2365,21 +2365,21 @@ fn compile_builtin_function_call(
let factor = a.next().unwrap();
quote!(#x.darker(#factor as f32))
}
BuiltinFunction::ColorTranslucent => {
BuiltinFunction::ColorTransparentize => {
let x = a.next().unwrap();
let factor = a.next().unwrap();
quote!(#x.translucent(#factor as f32))
quote!(#x.transparentize(#factor as f32))
}
BuiltinFunction::ColorOpaque => {
let x = a.next().unwrap();
let factor = a.next().unwrap();
quote!(#x.opaque(#factor as f32))
}
BuiltinFunction::ColorMixed => {
BuiltinFunction::ColorMix => {
let x = a.next().unwrap();
let y = a.next().unwrap();
let factor = a.next().unwrap();
quote!(#x.mixed(&#y.into(), #factor as f32))
quote!(#x.mix(&#y.into(), #factor as f32))
}
BuiltinFunction::ColorWithAlpha => {
let x = a.next().unwrap();