Examples of ColorAttribute


Examples of com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute

        renderData.positionChannel.data[positionOffset + ParticleChannels.ZOffset],
        qx, qy, qz, qw,
        scale, scale, scale);
      if(hasColor){
        int colorOffset = i*renderData.colorChannel.strideSize;
        ColorAttribute colorAttribute = (ColorAttribute)instance.materials.get(0).get(ColorAttribute.Diffuse);
        BlendingAttribute blendingAttribute = (BlendingAttribute)instance.materials.get(0).get(BlendingAttribute.Type);
        colorAttribute.color.r = renderData.colorChannel.data[colorOffset +ParticleChannels.RedOffset];
        colorAttribute.color.g = renderData.colorChannel.data[colorOffset +ParticleChannels.GreenOffset];
        colorAttribute.color.b = renderData.colorChannel.data[colorOffset +ParticleChannels.BlueOffset];
        if(blendingAttribute != null)
View Full Code Here

Examples of de.ailis.jollada.model.ColorAttribute

                "\\s+");
        this.rgbaColor.setRed(Float.parseFloat(parts[0]));
        this.rgbaColor.setGreen(Float.parseFloat(parts[1]));
        this.rgbaColor.setBlue(Float.parseFloat(parts[2]));
        this.rgbaColor.setAlpha(Float.parseFloat(parts[3]));
        this.colorOrTexture = new ColorAttribute(this.rgbaColor);
        this.stringBuilder = null;
        this.rgbaColor = null;
        leaveElement();
    }
View Full Code Here

Examples of de.ailis.jollada.model.ColorAttribute

    private void enterTexture(final Attributes attributes)
    {
        final String texture = attributes.getValue("texture");
        final String texcoord = attributes.getValue("texcoord");
        this.colorOrTexture = new ColorAttribute(new Texture(texture,
            texcoord));
        enterElement(ParserMode.TEXTURE);
    }
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        entityNames.setTypeEquals(new ArrayType(BaseType.STRING));

        // NOTE: The name of the this parameter violates the
        // naming conventions so that it is recorgnized as a highlight
        // color for this icon.
        _highlightColor = new ColorAttribute(this, "_highlightColor");
        // Yellow default.
        _highlightColor.setExpression("{1.0, 1.0, 0.0, 1.0}");

        label = new StringParameter(this, "label");
        label.setExpression("HighlightEntities");
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        iterationSynchronized = new Parameter(this, "iterationSynchronized",
                new BooleanToken(false));
        iterationSynchronized.setTypeEquals(BaseType.BOOLEAN);

        backgroundColor = new ColorAttribute(this, "backgroundColor");
        backgroundColor.setExpression("{0.0, 0.0, 0.0, 1.0}");

        _lastTransform = new Transform3D();
    }
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        sceneGraphOut = new TypedIOPort(this, "sceneGraphOut");
        sceneGraphOut.setOutput(true);
        sceneGraphOut.setTypeEquals(Scene2DToken.TYPE);

        rgbColor = new ColorAttribute(this, "rgbColor");
        rgbColor.setExpression("{0.0, 0.0, 0.0, 1.0}");

        lineWidth = new Parameter(this, "lineWidth", new DoubleToken(1.0));
        lineWidth.setTypeEquals(BaseType.DOUBLE);
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

     */
    public DependencyHighlighter(NamedObj container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);

        highlightColor = new ColorAttribute(this, "highlightColor");
        // Red default.
        highlightColor.setExpression("{1.0, 0.0, 0.0, 1.0}");
    }
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        super(container, name);
        sceneGraphOut = new TypedIOPort(this, "sceneGraphOut");
        sceneGraphOut.setOutput(true);
        sceneGraphOut.setTypeEquals(Scene2DToken.TYPE);

        rgbFillColor = new ColorAttribute(this, "rgbFillColor");
        rgbFillColor.setExpression("{1.0, 1.0, 1.0, 1.0}");

        rgbOutlineColor = new ColorAttribute(this, "rgbOutlineColor");
        rgbOutlineColor.setExpression("{0.0, 0.0, 0.0, 1.0}");

        outlineWidth = new Parameter(this, "outlineWidth", new DoubleToken(1.0));
        outlineWidth.setTypeEquals(BaseType.DOUBLE);
    }
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        translatable = new Parameter(this, "translatable", new BooleanToken(
                false));
        translatable.setTypeEquals(BaseType.BOOLEAN);

        backgroundColor = new ColorAttribute(this, "backgroundColor");
        backgroundColor.setExpression("{1.0, 1.0, 1.0, 1.0}");

        _originRelocatable = false;
    }
View Full Code Here

Examples of ptolemy.actor.gui.ColorAttribute

        super(container, name);
        sceneGraphOut = new TypedIOPort(this, "sceneGraphOut");
        sceneGraphOut.setOutput(true);
        sceneGraphOut.setTypeEquals(SceneGraphToken.TYPE);

        diffuseColor = new ColorAttribute(this, "diffuseColor");
        diffuseColor.setExpression("{0.7, 0.7, 0.7, 1.0}");

        emissiveColor = new ColorAttribute(this, "emissiveColor");
        emissiveColor.setExpression("{0.0, 0.0, 0.0, 1.0}");

        specularColor = new ColorAttribute(this, "specularColor");
        specularColor.setExpression("{1.0, 1.0, 1.0, 1.0}");

        texture = new FileParameter(this, "texture");

        // The following ensures that revert to defaults works properly.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.