RGB_Vdim.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nop 3
1
"""
2
 *  PyDMXControl: A Python 3 module to control DMX using OpenDMX or uDMX.
3
 *                Featuring fixture profiles, built-in effects and a web control panel.
4
 *  <https://github.com/MattIPv4/PyDMXControl/>
5
 *  Copyright (C) 2018 Matt Cowley (MattIPv4) ([email protected])
6
"""
7
8
from ..defaults import Vdim
9
10
11
class RGB_Vdim(Vdim):
12
13
    def __init__(self, *args, **kwargs):
14
        super().__init__(*args, **kwargs)
15
16
        self._register_channel('red', vdim=True)
17
        self._register_channel_aliases('red', 'r')
18
        self._register_channel('green', vdim=True)
19
        self._register_channel_aliases('green', 'g')
20
        self._register_channel('blue', vdim=True)
21
        self._register_channel_aliases('blue', 'b')
22