public static void Write(this BinaryWriter writer, RealColorHsv color)
 {
     // Write a RealColorHsv object to the stream.
     writer.Write(color.hue);
     writer.Write(color.saturation);
     writer.Write(color.value);
 }
Beispiel #2
0
        public static RealColorHsv ReadRealColorHsv(this BinaryReader reader)
        {
            // Read a RealColorHsv object from the stream.
            RealColorHsv color = new RealColorHsv();

            color.hue        = reader.ReadSingle();
            color.saturation = reader.ReadSingle();
            color.value      = reader.ReadSingle();

            return(color);
        }