//
//  Colors.swift
//  SpaceRunner
//
//  Created by Jeremy Novak on 8/26/16.
//  Copyright © 2016 Spritekit Book. All rights reserved.
//

import SpriteKit

class Colors {
    
    // RGB Colors
    class var background:Int        { return 0x000013 }
    class var dust:Int              { return 0x04f2de }
    class var engine:Int            { return 0x55f87e }
    
    class func colorFromRGB(rgbvalue rgbValue: Int) -> SKColor {
        return SKColor(red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0, blue: CGFloat(rgbValue & 0x0000FF) / 255.0, alpha: 1.0)
    }
}
