change-gray-ti-brown (#1021)

A typo that hadn't been noticed before. Does not affect the operation of the simulator.
This commit is contained in:
Dmitriy Antipov 2023-05-06 19:47:27 +03:00 committed by GitHub
parent dd18007035
commit af263c8183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ namespace pxsim.visuals {
export class ColorGridControl extends ControlView<ColorSensorNode> { export class ColorGridControl extends ControlView<ColorSensorNode> {
private group: SVGGElement; private group: SVGGElement;
private static colorIds = ['red', 'yellow', 'blue', 'green', 'black', 'grey', 'white', 'none']; private static colorIds = ['red', 'yellow', 'blue', 'green', 'black', 'brown', 'white', 'none'];
private static colorValue = [5, 4, 2, 3, 1, 7, 6, 0]; private static colorValue = [5, 4, 2, 3, 1, 7, 6, 0];
private colorDivs: Element[] = []; private colorDivs: Element[] = [];
@ -15,7 +15,7 @@ namespace pxsim.visuals {
this.group.setAttribute("transform", `translate(2, 2.5) scale(0.6)`) this.group.setAttribute("transform", `translate(2, 2.5) scale(0.6)`)
const colors = ['#f12a21', '#ffd01b', '#006db3', '#00934b', '#000', '#6c2d00']; const colors = ['#f12a21', '#ffd01b', '#006db3', '#00934b', '#000', '#6c2d00'];
const colorIds = ['red', 'yellow', 'blue', 'green', 'black', 'grey']; const colorIds = ['red', 'yellow', 'blue', 'green', 'black', 'brown'];
let cy = -4; let cy = -4;
for (let c = 0; c < colorIds.length; c++) { for (let c = 0; c < colorIds.length; c++) {