import six
from ipywidgets import Widget, DOMWidget, widget_serialization, Color, register
from traitlets import (
    Unicode, Int, CInt, Instance, ForwardDeclaredInstance, This, Enum,
    Tuple, List, Dict, Float, CFloat, Bool, Union, Any,
    )

from .._base.Three import ThreeWidget
from ..enums import *
from ..traits import *

from .._base.Three import ThreeWidget


@register
class Fog(ThreeWidget):
    """Fog

    Autogenerated by generate-wrappers.js
    Date: Tue Dec 19 2017 10:52:06 GMT+0100 (W. Europe Standard Time)
    See https://threejs.org/docs/#api/scenes/Fog
    """

    def __init__(self, color="white", near=1, far=1000, **kwargs):
        kwargs['color'] = color
        kwargs['near'] = near
        kwargs['far'] = far
        super(Fog, self).__init__(**kwargs)

    _model_name = Unicode('FogModel').tag(sync=True)

    name = Unicode('', allow_none=False).tag(sync=True)

    color = Unicode("white", allow_none=False).tag(sync=True)

    near = CFloat(1, allow_none=False).tag(sync=True)

    far = CFloat(1000, allow_none=False).tag(sync=True)


if six.PY3:
    import inspect
    # Include explicit signature since the metaclass screws it up
    Fog.__signature__ = inspect.signature(Fog.__init__)
