diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py index e1c0bbf2148fee02aa96d7a2a634d595b88e4130..05fc67b0b6c77a02518ee43b8a5879e1119d3210 100644 --- a/flatland/utils/graphics_pil.py +++ b/flatland/utils/graphics_pil.py @@ -69,15 +69,11 @@ class PILGL(GraphicsLayer): self.tColRail = (0, 0, 0) # black rails self.tColGrid = (230,) * 3 # light grey for grid - sColors = "d50000#c51162#aa00ff#6200ea#304ffe#2962ff#0091ea#00b8d4#00bfa5#00c853" + \ + sColors = "ff0000#00ff00#0000ff#ffcc00#00FFFF#ff00ff#ff00FF#000000#808080" + \ + "#d50000#c51162#aa00ff#6200ea#304ffe#2962ff#0091ea#00b8d4#00bfa5#00c853" + \ "#64dd17#aeea00#ffd600#ffab00#ff6d00#ff3d00#5d4037#455a64" self.ltAgentColors = [self.rgb_s2i(sColor) for sColor in sColors.split("#")] - permute = np.random.permutation(len(self.ltAgentColors)) - tmp = [] - for p in permute: - tmp.append(self.ltAgentColors[p]) - self.ltAgentColors = tmp self.nAgentColors = len(self.ltAgentColors) self.window_root = None diff --git a/notebooks/Scene_Editor.ipynb b/notebooks/Scene_Editor.ipynb index 58fb2ff65d4ea28ce77419c5f213b2769bfe2f94..8f8408da58523af8b2ada8a44060cb77a097657c 100644 --- a/notebooks/Scene_Editor.ipynb +++ b/notebooks/Scene_Editor.ipynb @@ -11,20 +11,7 @@ "cell_type": "code", "execution_count": 1, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "<style>.container { width:95% !important; }</style>" - ], - "text/plain": [ - "<IPython.core.display.HTML object>" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "from IPython.core.display import display, HTML\n", "display(HTML(\"<style>.container { width:95% !important; }</style>\"))" @@ -70,7 +57,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "a84c3835ae974991a7b05a3757e1f13e", + "model_id": "56d4cd729b7a4edcb0a55e62476a3e94", "version_major": 2, "version_minor": 0 },