1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Draw circle

Discussion in 'Programming' started by HayManMarc, Feb 12, 2019.

  1. HayManMarc

    HayManMarc Member

    Joined:
    Jun 21, 2016
    Posts:
    876
    Is there a way to draw a circle with a dashed line instead of a solid line?
     
  2. Cat

    Cat Member

    Joined:
    Jun 22, 2016
    Posts:
    70
    Have you tried using primitives? pr_linelist should do the trick. Just specify how many line segments (n), you want, then loop 2n + 1 times, drawing a vertex each time at lengthdir_(radius, i * (180/n)).

    Hope that works!
     
    SnotWaffle Studios likes this.
  3. Binsk

    Binsk Member

    Joined:
    Jun 22, 2016
    Posts:
    554
    Short answer: no

    Long answer: no but you can make your own system that does. You'd have to look into how to draw primitives as suggested by Cat.
     
  4. HayManMarc

    HayManMarc Member

    Joined:
    Jun 21, 2016
    Posts:
    876
    Thanks, @Cat, I'll check into that.
     
    Cat likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice