Beispiel #1
0
    def set_color(self, color: List[float]) -> None:
        """Sets the color of the shape.

        :param color: The r, g, b values of the shape.
        :return:
        """
        vrep.simSetShapeColor(
            self._handle, None, vrep.sim_colorcomponent_ambient_diffuse, color)
Beispiel #2
0
    def set_transparency(self, transparancy: List[float]) -> None:
        """Sets the transparency of the shape.

        :param transparency: The value of the transparency.
        :return:
        """

        vrep.simSetShapeColor(
            self._handle, None, vrep.sim_colorcomponent_transparency, transparancy)