示例#1
0
    public void updateRing(int ringNum)
    {
        float ringRadius = graph.getRingRadius(ringNum);

        // rings
        graph.textureChanger(ring, ringSprite, (2 * ringNum + 1), graph.outerRadius * 2, ringRadius - graph.ringWidth, ringRadius, graph.antiAliasing, graph.antiAliasingStrength);
        // bands
        if (graph.bandMode)
        {
            SetActive(band, true);
            graph.textureChanger(band, bandSprite, (2 * ringNum + 1) + 1, graph.outerRadius * 2, ringRadius + graph.bandPadding,
                                 graph.getRingRadius(ringNum + 1) - graph.ringWidth - graph.bandPadding, graph.antiAliasing, graph.antiAliasingStrength);
        }
        else
        {
            SetActive(band, false);
        }
    }
示例#2
0
    public void updateRing(int ringNum)
    {
        float ringRadius = graph.getRingRadius(ringNum);

        // rings
        WMG_Util.updateBandColors(ref ringColors, graph.outerRadius * 2, ringRadius - graph.ringWidth, ringRadius, graph.antiAliasing, graph.antiAliasingStrength);
        ringSprite.texture.SetPixels(ringColors);
        ringSprite.texture.Apply();
        // bands
        if (graph.bandMode)
        {
            SetActive(band, true);
            WMG_Util.updateBandColors(ref bandColors, graph.outerRadius * 2, ringRadius + graph.bandPadding,
                                      graph.getRingRadius(ringNum + 1) - graph.ringWidth - graph.bandPadding, graph.antiAliasing, graph.antiAliasingStrength);
            bandSprite.texture.SetPixels(bandColors);
            bandSprite.texture.Apply();
        }
        else
        {
            SetActive(band, false);
        }
    }
示例#3
0
    public void updateRing(int ringNum)
    {
        float ringRadius = graph.getRingRadius(ringNum);

        // label points
        changeSpritePositionToY(labelPoint, -(ringRadius - graph.ringWidth / 2));
        // rings
        graph.updateRingColors(ref ringColors, ringRadius - graph.ringWidth, ringRadius);
        ringSprite.texture.SetPixels(ringColors);
        ringSprite.texture.Apply();
        // bands
        if (graph.bandMode)
        {
            SetActive(band, true);
            graph.updateRingColors(ref bandColors, ringRadius + graph.bandPadding, graph.getRingRadius(ringNum + 1) - graph.ringWidth - graph.bandPadding);
            bandSprite.texture.SetPixels(bandColors);
            bandSprite.texture.Apply();
        }
        else
        {
            SetActive(band, false);
        }
    }