 	return lhs.width == rhs.width && lhs.height == rhs.height
 }
 
+// MARK: - Color
+
 public class Color {
+
 	public var redComponent: Double
 	public var greenComponent: Double
 	public var blueComponent: Double


	public func get(pixel: Point) -> Color {
		let color = gdImageGetTrueColorPixel(internalImage, Int32(pixel.x), Int32(pixel.y))

		let a = Double((color >> 24) & 0xFF)
		let r = Double((color >> 16) & 0xFF)
		let g = Double((color >> 8) & 0xFF)
		let b = Double(color & 0xFF)

		return Color(red: r / 255, green: g / 255, blue: b / 255, alpha: 1 - (a / 127))
	}

	public func strokeEllipse(center: Point, size: Size, color: Color) {


import Foundation

/// Represents errors that can be thrown within the SwiftGD module.
///
/// - invalidColor: Contains the reason this error was thrown.
public enum Error: Swift.Error {
    case invalidColor(reason: String) /// The reason this error was thrown.
}

// In case you were wondering: it's a class rather than a struct because we need
// deinit to free the internal GD pointer, and that's only available to classes.
