Skip to content

Commit 3d8585b

Browse files
tobifalkcassava
authored andcommitted
ui: Change rendering color palette
1 parent 06e1c25 commit 3d8585b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ui/src/components/rendering.jsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Rendering extends Component {
3838
opacity: 0.5
3939
});
4040
this.egoVehicleMaterial = new THREE.MeshLambertMaterial({
41-
color: 0x00c851,
41+
color: 0x129a7d,
4242
transparent: true,
4343
opacity: 0.3
4444
});
@@ -76,8 +76,8 @@ class Rendering extends Component {
7676
this.defaultCameraPerspective = 0;
7777
this.currentCameraPerspective = this.defaultCameraPerspective;
7878
this.defaultColors = {
79-
Object: ["#999999", "#1890ff", "#faad14", "#B22222"],
80-
Lane: ["#ffc300", "#ff4400", "#00bcff"]
79+
Object: ["#999999", "#8ac0de", "#e6b655", "#e58b88", "#70ae98"],
80+
Lane: ["#e6b655", "#e58b88", "#8ac0de", "#70ae98"]
8181
};
8282
this.sensorType = { Object: "object", Lane: "lane" };
8383
this.defaultSensor = {
@@ -609,7 +609,10 @@ class Rendering extends Component {
609609

610610
getLaneGeomFromClothoid = (lane, detectedBy, pointsEgoFrame) => {
611611
const geometry = new THREE.Geometry();
612-
const material = new THREE.LineBasicMaterial({ color: this.laneColors[detectedBy] });
612+
const material = new THREE.LineBasicMaterial({
613+
color: this.laneColors[detectedBy],
614+
linewidth: 2
615+
});
613616
const n = pointsEgoFrame.length;
614617
const lineLengthGT = pointsEgoFrame[n - 1].x - pointsEgoFrame[0].x;
615618
if (lineLengthGT < 0.01) {

0 commit comments

Comments
 (0)