| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- return {
- tag = 'drawing',
- summary = 'Draw a line.',
- description = [[
- Draws a line between points. `Pass:mesh` can also be used to draw line segments using the
- `line` `DrawMode`.
- ]],
- arguments = {
- x1 = {
- type = 'number',
- description = 'The x coordinate of the first point.'
- },
- y1 = {
- type = 'number',
- description = 'The y coordinate of the first point.'
- },
- z1 = {
- type = 'number',
- description = 'The z coordinate of the first point.'
- },
- x2 = {
- type = 'number',
- description = 'The x coordinate of the next point.'
- },
- y2 = {
- type = 'number',
- description = 'The y coordinate of the next point.'
- },
- z2 = {
- type = 'number',
- description = 'The z coordinate of the next point.'
- },
- t = {
- type = 'table',
- description = [[
- A table of numbers or `Vec3` objects (not a mix) representing points of the line.
- ]]
- },
- v1 = {
- type = 'Vec3',
- description = 'A vector containing the position of the first point of the line.'
- },
- v2 = {
- type = 'Vec3',
- description = 'A vector containing the position of the next point on the line.'
- },
- ['...'] = {
- type = '*',
- description = 'More points to add to the line.'
- }
- },
- returns = {},
- variants = {
- {
- arguments = { 'x1', 'y1', 'z1', 'x2', 'y2', 'z2', '...' },
- returns = {}
- },
- {
- arguments = { 't' },
- returns = {}
- },
- {
- arguments = { 'v1', 'v2', '...' },
- returns = {}
- }
- },
- notes = 'There is currently no way to increase line thickness.'
- }
|