You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: color_transform.rs
    path of file: ./repos/ruffle/core/src/avm1/globals
    
    the code of the file until where you have to start completion: //! flash.geom.ColorTransform object

use crate::avm
    
    fn from(object: ColorTransformObject) -> Self {
        Self {
            r_multiply: Fixed8::from_f64(object.red_multiplier),
            g_multiply: Fixed8::from_f64(object.green_multiplier),
            b_multiply: Fixed8::from_f64(object.blue_multiplier),
            a_multiply: Fixed8::from_f64(object.alpha_multiplier),
            r_add: object.red_offset as i16,
            g_add: object.green_offset as i16,
            b_add: object.blue_offset as i16,
            a_add: object.alpha_offset as i16,
        }
    }