Browse Source

Fix missing RC->GC colour mapping

tags/v1.0.0
NGnius (Graham) 4 years ago
parent
commit
523baec814
2 changed files with 8 additions and 5 deletions
  1. +5
    -5
      Pixi/Common/ColorSpaceUtility.cs
  2. +3
    -0
      Pixi/Robots/CubeUtility.cs

+ 5
- 5
Pixi/Common/ColorSpaceUtility.cs View File

@@ -246,11 +246,11 @@ namespace Pixi.Common
botColorMap[18] = new BlockColor { Color = BlockColors.Purple, Darkness = 9 };
botColorMap[19] = new BlockColor { Color = BlockColors.Pink, Darkness = 9 };
botColorMap[20] = new BlockColor { Color = BlockColors.Orange, Darkness = 5 };
botColorMap[20] = new BlockColor { Color = BlockColors.Yellow, Darkness = 3 };
botColorMap[14] = new BlockColor { Color = BlockColors.Green, Darkness = 7 };
botColorMap[21] = new BlockColor { Color = BlockColors.Lime, Darkness = 8 };
botColorMap[22] = new BlockColor { Color = BlockColors.Green, Darkness = 6 };
botColorMap[13] = new BlockColor { Color = BlockColors.Lime, Darkness = 5 };
botColorMap[14] = new BlockColor { Color = BlockColors.Yellow, Darkness = 3 };
botColorMap[21] = new BlockColor { Color = BlockColors.Green, Darkness = 7 };
botColorMap[22] = new BlockColor { Color = BlockColors.Lime, Darkness = 8 };
botColorMap[13] = new BlockColor { Color = BlockColors.Green, Darkness = 6 };
botColorMap[12] = new BlockColor { Color = BlockColors.Lime, Darkness = 5 };
// blue gang
botColorMap[23] = new BlockColor { Color = BlockColors.Blue, Darkness = 8 };
botColorMap[24] = new BlockColor { Color = BlockColors.Aqua, Darkness = 8 };


+ 3
- 0
Pixi/Robots/CubeUtility.cs View File

@@ -188,6 +188,9 @@ namespace Pixi.Robots
{
// I hope these colours are accurate, I just guessed
// TODO colour accuracy (lol that won't ever happen)
#if DEBUG
Logging.MetaLog($"Cube colour {colour}");
#endif
BlockColor c = ColorSpaceUtility.QuantizeToBlockColor(colour);
result.color = c.Color;
result.darkness = c.Darkness;


Loading…
Cancel
Save