1 | // Aseprite Document Library |
---|---|
2 | // Copyright (c) 2001-2017 David Capello |
3 | // |
4 | // This file is released under the terms of the MIT license. |
5 | // Read LICENSE.txt for more information. |
6 | |
7 | #ifdef HAVE_CONFIG_H |
8 | #include "config.h" |
9 | #endif |
10 | |
11 | #include "doc/blend_mode.h" |
12 | |
13 | namespace doc { |
14 | |
15 | std::string blend_mode_to_string(BlendMode blendMode) |
16 | { |
17 | switch (blendMode) { |
18 | case BlendMode::NORMAL: return "normal"; |
19 | case BlendMode::MULTIPLY: return "multiply"; |
20 | case BlendMode::SCREEN: return "screen"; |
21 | case BlendMode::OVERLAY: return "overlay"; |
22 | case BlendMode::DARKEN: return "darken"; |
23 | case BlendMode::LIGHTEN: return "lighten"; |
24 | case BlendMode::COLOR_DODGE: return "color_dodge"; |
25 | case BlendMode::COLOR_BURN: return "color_burn"; |
26 | case BlendMode::HARD_LIGHT: return "hard_light"; |
27 | case BlendMode::SOFT_LIGHT: return "soft_light"; |
28 | case BlendMode::DIFFERENCE: return "difference"; |
29 | case BlendMode::EXCLUSION: return "exclusion"; |
30 | case BlendMode::HSL_HUE: return "hsl_hue"; |
31 | case BlendMode::HSL_SATURATION: return "hsl_saturation"; |
32 | case BlendMode::HSL_COLOR: return "hsl_color"; |
33 | case BlendMode::HSL_LUMINOSITY: return "hsl_luminosity"; |
34 | case BlendMode::ADDITION: return "addition"; |
35 | case BlendMode::SUBTRACT: return "subtract"; |
36 | case BlendMode::DIVIDE: return "divide"; |
37 | default: return "unknown"; |
38 | } |
39 | } |
40 | |
41 | } // namespace doc |
42 |