Make the light around the color sensor appear bright and not a reflection of the current color detected. (#561)

This commit is contained in:
Sam El-Husseini 2018-05-03 08:39:06 -07:00 committed by Peli de Halleux
parent 76f7df7579
commit e4c3fa0e57

View File

@ -36,7 +36,10 @@ namespace pxsim.visuals {
private updateSensorLightVisual(color: string) {
const sensorHole = this.content.getElementById(this.normalizeId(ColorSensorView.sensor_hole_id)) as SVGCircleElement;
sensorHole.style.fill = color;
sensorHole.style.stroke = color;
if (color != '#ffffff') {
sensorHole.style.strokeWidth = '2px';
}
}
}
}