(channel: ColorChannel)
| 102 | } |
| 103 | |
| 104 | getChannelValue(channel: ColorChannel): number { |
| 105 | if (channel in this) { |
| 106 | return this[channel]; |
| 107 | } |
| 108 | |
| 109 | throw new Error('Unsupported color channel: ' + channel); |
| 110 | } |
| 111 | |
| 112 | withChannelValue(channel: ColorChannel, value: number): IColor { |
| 113 | if (channel in this) { |
nothing calls this directly
no outgoing calls
no test coverage detected