Subversion Repositories tpanel

Rev

Rev 40 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40 Rev 108
Line 54... Line 54...
54
        static SkColor getSkiaColor(const std::string& color);
54
        static SkColor getSkiaColor(const std::string& color);
55
        static ulong getColor(const std::string& color);
55
        static ulong getColor(const std::string& color);
56
        static std::string colorToString(ulong color);
56
        static std::string colorToString(ulong color);
57
        static std::string colorToString(SkColor color);
57
        static std::string colorToString(SkColor color);
58
        static std::vector<SkColor> colorRange(SkColor col, int width, int bandwidth, DIRECTION_t dir);
58
        static std::vector<SkColor> colorRange(SkColor col, int width, int bandwidth, DIRECTION_t dir);
-
 
59
        static bool isValidAMXcolor(const std::string& color);
59
 
60
 
60
        static int getRed(ulong color) { return ((color >> 24) & 0x000000ff); }
61
        static int getRed(ulong color) { return ((color >> 24) & 0x000000ff); }
61
        static SkColor getRed(SkColor color) { return SkColorGetR(color); }
62
        static SkColor getRed(SkColor color) { return SkColorGetR(color); }
62
        static int getGreen(ulong color) { return ((color >> 16) & 0x000000ff); }
63
        static int getGreen(ulong color) { return ((color >> 16) & 0x000000ff); }
63
        static SkColor getGreen(SkColor color) { return SkColorGetG(color); }
64
        static SkColor getGreen(SkColor color) { return SkColorGetG(color); }