Matthias
  • 👋Welcome
  • 👶Getting started
  • 📞Callbacks
  • 🕑Variables
    • 🎯Getter functions
      • 🙏Fields available for getting
  • 🧑‍🦯Visuals
    • ◻️Shapes
      • 📏Line
      • ⚪Circle
      • ⬜Rectangle
    • 📸Media
      • 🖼️Image
      • 🔡Text
    • 🔔Notifications
  • ☁️Miscellaneous
    • 📲Image memory management
Powered by GitBook
On this page
  1. Visuals
  2. Shapes

Line

To display a Circle in Matthias you will have to provide the following arguments:

  • Starting position of the Line: [f32; 2]

  • End position of the Line: [f32; 2]

  • Color of the Line: [u8; 4]

--Position (x, y)
start_position = {500., 500.}

--Position (x, y)
end_position = {800., 800.}

--Color of the circle (r, g, b, a)
color = {255, 255, 255, 255}

--Draw line on draw
function OnDraw()
    draw_line(position, radius, is_filled, color)
end
PreviousShapesNextCircle
🧑‍🦯
◻️
📏