BlendMode.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. return {
  2. summary = 'Blend modes.',
  3. description = 'Different ways pixels can blend with the pixels behind them.',
  4. values = {
  5. {
  6. name = 'alpha',
  7. description = 'Colors will be mixed based on alpha.'
  8. },
  9. {
  10. name = 'add',
  11. description = 'Colors will be added to the existing color, alpha will not be changed.'
  12. },
  13. {
  14. name = 'subtract',
  15. description = 'Colors will be subtracted from the existing color, alpha will not be changed.'
  16. },
  17. {
  18. name = 'multiply',
  19. description = 'All color channels will be multiplied together, producing a darkening effect.'
  20. },
  21. {
  22. name = 'lighten',
  23. description = 'The maximum value of each color channel will be used.'
  24. },
  25. {
  26. name = 'darken',
  27. description = 'The minimum value of each color channel will be used.'
  28. },
  29. {
  30. name = 'screen',
  31. description = [[
  32. The opposite of multiply: the pixel colors are inverted, multiplied, and inverted again,
  33. producing a lightening effect.
  34. ]]
  35. }
  36. },
  37. related = {
  38. 'BlendAlphaMode',
  39. 'Pass:setBlendMode'
  40. }
  41. }