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

Circle

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

  • Position of the Circle: [f32; 2]

  • Radius of the Circle: f32

  • Is the Circle filled: boolean

  • Color of the Circle: [u8; 4]

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

--circle Size (r)
radius = 20.

--Is the circle filled
is_filled = true

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

--Draw circle on draw
function OnDraw()
    draw_circle(position, radius, is_filled, color)
end
PreviousLineNextRectangle
🧑‍🦯
◻️
⚪