getBlendMode.lua 693 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Get the blend mode.',
  4. description = [[
  5. Returns the current blend mode. The blend mode controls how each pixel's color is blended with
  6. the previous pixel's color when drawn.
  7. If blending is disabled, `nil` will be returned.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. {
  12. name = 'blend',
  13. type = 'BlendMode',
  14. description = 'The current blend mode.'
  15. },
  16. {
  17. name = 'alphaBlend',
  18. type = 'BlendAlphaMode',
  19. description = 'The current alpha blend mode.'
  20. }
  21. },
  22. notes = [[
  23. The default blend mode is `alpha` and `alphamultiply`.
  24. ]],
  25. related = {
  26. 'BlendMode',
  27. 'BlendAlphaMode'
  28. }
  29. }