Enum Class PixelAudioMapper.ChannelNames

java.lang.Object
java.lang.Enum<PixelAudioMapper.ChannelNames>
net.paulhertz.pixelaudio.PixelAudioMapper.ChannelNames
All Implemented Interfaces:
Serializable, Comparable<PixelAudioMapper.ChannelNames>, Constable
Enclosing class:
PixelAudioMapper

public static enum PixelAudioMapper.ChannelNames extends Enum<PixelAudioMapper.ChannelNames>
List of available color channels, "L" for lightness, since "B" for brightness is taken. The expanded enum type allows me to provide some additional information, including extraction methods for each channel. These all require a float[3] hsbPixel argument. Because of the overhead involved in allocation of the hsbPixel array, callers are advised to make it reusable for tight loops or to use the other extraction methods in the PixelAudioMapper class. At the moment, I regard the extraction methods as experimental, but they may be worth extending in the future, to have a single entry point for all color channel operations.