Example #1
0
    public static void Draw_ARC_PARTITIONS(Partitions _partitions, int _sides, float _x, float _y, float _radius, float _thickness, float _angle_start = 0, float _angle_end = 1, float _rotation = 0)
    {
        float _RADIUS_END = _radius + _thickness;
        float _angleRange = _angle_end - _angle_start;

        for (int i = 0; i < _partitions.count; i++)
        {
            Partition _P           = _partitions.Get(i);
            float     _ANGLE_START = _angleRange * _P.start;
            GL_DRAW.Draw_ARC(_sides, _x, _y, _ANGLE_START, _ANGLE_START + (_angleRange * _P.share), _radius, _radius + _thickness, _P.colour, _rotation);
        }
    }