updated examples to use new to_rgba method