List<double> toRGBList(Color color) { return [color.red.toDouble(), color.green.toDouble(), color.blue.toDouble()]; }