setBlendMode.lua 775 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Set the blend mode.',
  4. description = [[
  5. Sets the blend mode. The blend mode controls how each pixel's color is blended with the
  6. previous pixel's color when drawn.
  7. ]],
  8. arguments = {
  9. blend = {
  10. type = 'BlendMode',
  11. description = 'The blend mode.'
  12. },
  13. alphaBlend = {
  14. type = 'BlendAlphaMode',
  15. description = 'The alpha blend mode.'
  16. }
  17. },
  18. returns = {},
  19. variants = {
  20. {
  21. arguments = { 'blend', 'alphaBlend' },
  22. returns = {}
  23. },
  24. {
  25. description = 'Disable blending.',
  26. arguments = {},
  27. returns = {}
  28. }
  29. },
  30. notes = [[
  31. The default blend mode is `alpha` and `alphamultiply`.
  32. ]],
  33. related = {
  34. 'BlendMode',
  35. 'BlendAlphaMode'
  36. }
  37. }