Skip to content

Commit

Permalink
remove dependency matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiberducci committed Nov 30, 2023
1 parent 7392f7e commit f2b0c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gym/f110_gym/envs/rendering/rendering_pygame.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import numpy as np
import pygame
import yaml
from PIL import Image
from PIL import Image, ImageColor

from f110_gym.envs.rendering.objects import FPS, Timer, BottomInfo, Map, Car, TopInfo
from f110_gym.envs.track import Track
Expand Down Expand Up @@ -43,7 +43,7 @@ def __init__(
self.render_fps = render_fps

colors_rgb = [
[255 * rgb for rgb in matplotlib.colors.hex2color(c)]
[rgb for rgb in ImageColor.getcolor(c, "RGB")]
for c in render_spec.vehicle_palette
]
self.car_colors = [
Expand Down

0 comments on commit f2b0c5f

Please sign in to comment.