line.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. return {
  2. tag = 'graphicsPrimitives',
  3. summary = 'Draw lines.',
  4. description = [[
  5. Draws lines between points. Each point will be connected to the previous point in the list.
  6. ]],
  7. arguments = {
  8. x1 = {
  9. type = 'number',
  10. description = 'The x coordinate of the first point.'
  11. },
  12. y1 = {
  13. type = 'number',
  14. description = 'The y coordinate of the first point.'
  15. },
  16. z1 = {
  17. type = 'number',
  18. description = 'The z coordinate of the first point.'
  19. },
  20. x2 = {
  21. type = 'number',
  22. description = 'The x coordinate of the second point.'
  23. },
  24. y2 = {
  25. type = 'number',
  26. description = 'The y coordinate of the second point.'
  27. },
  28. z2 = {
  29. type = 'number',
  30. description = 'The z coordinate of the second point.'
  31. },
  32. ['...'] = {
  33. type = 'number',
  34. description = 'More points.'
  35. },
  36. points = {
  37. type = 'table',
  38. description = 'A table of point positions, as described above.'
  39. }
  40. },
  41. returns = {},
  42. variants = {
  43. {
  44. arguments = { 'x1', 'y1', 'z1', 'x2', 'y2', 'z2', '...' },
  45. returns = {}
  46. },
  47. {
  48. arguments = { 'points' },
  49. returns = {}
  50. }
  51. }
  52. }