MCPcopy Create free account
hub / github.com/comaps/comaps / GetCurveColor

Function GetCurveColor

libs/map/chart_generator.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69agg::rgba8 GetCurveColor(MapStyle mapStyle)
70{
71 switch (mapStyle)
72 {
73 case MapStyleCount:
74 LOG(LERROR, ("Wrong map style param."));
75 [[fallthrough]];
76 // No need break or return here.
77 case MapStyleDefaultDark:
78 case MapStyleVehicleDark:
79 case MapStyleOutdoorsDark: return agg::rgba8(255, 230, 140, 20);
80 case MapStyleDefaultLight:
81 case MapStyleVehicleLight:
82 case MapStyleOutdoorsLight:
83 case MapStyleMerged: return agg::rgba8(30, 150, 240, 20);
84 }
85 UNREACHABLE();
86}
87} // namespace
88
89void ScaleChartData(vector<double> & chartData, double scale)

Callers 1

GenerateChartByPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected