fork download
  1. namespace Blend {
  2.  
  3. // Alphabetically ordered blend modes.
  4. enum DLLPUBLIC Op
  5. {
  6. ArithmeticMean, // (A+B)/2
  7. ColorBurn, // 1 - (1-B)/A
  8. ColorDodge, // B/(1-A)
  9. Difference, // abs(A-B)
  10. Divide, // A/B
  11. Exclusion, // A+B-2AB
  12. Geometric, // 2AB/(A+B)
  13. GeometricMean, // sqrt(AB)
  14. HardLight, // if(A<0.5):2AB, else 1 - 2(1-A)(1-B)
  15. Hypotenuse, // sqrt(A*A + B*B)
  16. LinearBurn, // A+B-1
  17. LinearLight, // 2A+B-1
  18. Max, // max(A,B)
  19. Min, // min(A,B)
  20. Minus, // A-B
  21. Multiply, // AB
  22. Normal, // A
  23. Overlay, // hard_light (B,A)
  24. PinLight, // max(2A-1, min(B, 2A))
  25. Screen, // A+B-A*B if A and B are in range 0-1, otherwise max(A,B)
  26. SoftLight, // if (A<0.5): B*Screen(2A,B), else B+(2A-1)(D-B),
  27. // where D=sqrt(B) if (B>0.25), otherwise ((16B-12)B+4)B.
  28. VividLight // 1-(1-B)/2A if A<0.5, else B / (2(1-A))
  29. };
  30.  
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4: error: use of enum ‘DLLPUBLIC’ without previous declaration
prog.cpp:4: error: function definition does not declare parameters
stdout
Standard output is empty