scenic.simulators.utils.colors
A basic color type.
This used for example to represent car colors in the abstract driving domain, as well as in the interfaces to GTA and Webots.
Summary of Module Members
Classes
A color as an RGB tuple. |
|
Mutator that adds Gaussian HSL noise to the |
|
A distribution given by HSL noise around a base color. |
Member Details
- class Color(r, g, b)[source]
Bases:
Color
A color as an RGB tuple.
- static defaultCarColor()[source]
Default color distribution for cars.
The distribution starts with a base distribution over 9 discrete colors, then adds Gaussian HSL noise. The base distribution uses color popularity statistics from a 2012 DuPont survey.
- class NoisyColorDistribution(baseColor, hueNoise, satNoise, lightNoise)[source]
Bases:
Distribution
A distribution given by HSL noise around a base color.