Subversion Repositories tpanel

Rev

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

Rev 262 Rev 289
Line 160... Line 160...
160
    s << std::setw(2) << std::setfill('0') << std::hex << SkColorGetA(color);
160
    s << std::setw(2) << std::setfill('0') << std::hex << SkColorGetA(color);
161
    std::string ret = s.str();
161
    std::string ret = s.str();
162
    return ret;
162
    return ret;
163
}
163
}
164
 
164
 
-
 
165
std::string TColor::colorToString(COLOR_T color)
-
 
166
{
-
 
167
    std::stringstream s;
-
 
168
    s << std::setw(2) << std::setfill('0') << std::hex << color.red << ":";
-
 
169
    s << std::setw(2) << std::setfill('0') << std::hex << color.green << ":";
-
 
170
    s << std::setw(2) << std::setfill('0') << std::hex << color.red << ":";
-
 
171
    s << std::setw(2) << std::setfill('0') << std::hex << color.alpha;
-
 
172
    std::string ret = s.str();
-
 
173
    return ret;
-
 
174
}
-
 
175
 
165
std::vector<SkColor> TColor::colorRange(SkColor col, int width, int bandwidth, DIRECTION_t dir)
176
std::vector<SkColor> TColor::colorRange(SkColor col, int width, int bandwidth, DIRECTION_t dir)
166
{
177
{
167
    DECL_TRACER("TColor::colorRange(SkColor col, int width, int bandwidth)");
178
    DECL_TRACER("TColor::colorRange(SkColor col, int width, int bandwidth)");
168
 
179
 
169
    int red, green, blue, alpha, colStep;
180
    int red, green, blue, alpha, colStep;