Examples of Colors


Examples of mrtjp.core.color.Colors

        {
            packetType3(color, count, dir, bc, world);
            return;
        }

        Colors c = Colors.get(color);
        for (int i = 0; i < count; i++)
            doSpawnType3(c, dir, bc, world);
    }
View Full Code Here

Examples of org.apache.flink.api.io.avro.generated.Colors

    List<Boolean> bl = u.getTypeArrayBoolean();
    assertEquals("element 0 not equal", TEST_ARRAY_BOOLEAN_1, bl.get(0));
    assertEquals("element 1 not equal", TEST_ARRAY_BOOLEAN_2, bl.get(1));
   
    // check enums
    Colors enumValue = u.getTypeEnum();
    assertEquals("enum not equal", TEST_ENUM_COLOR, enumValue);
   
    // check maps
    Map<CharSequence, Long> lm = u.getTypeMap();
    assertEquals("map value of key 1 not equal", TEST_MAP_VALUE1, lm.get(new Utf8(TEST_MAP_KEY1)).longValue());
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.stylesheet.Colors

          String color, opacity;
          double d = e.hasNumber("ui.color") ? e
              .getNumber("ui.color") : 0;

          double a, b;
          Colors colors = group.getFillColors();
          int s = Math.min((int) (d * group.getFillColorCount()),
              colors.size() - 2);

          a = s / (double) (colors.size() - 1);
          b = (s + 1) / (double) (colors.size() - 1);

          d = (d - a) / (b - a);

          Color c1 = colors.get(s), c2 = colors.get(s + 1);

          color = String.format(
              "#%02x%02x%02x",
              (int) (c1.getRed() + d
                  * (c2.getRed() - c1.getRed())),
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

    if (cache.contains(iconName)) {
      return cache.get(iconName);
    }

    Dimension size = tray.iconSize();
    Colors colors = look.colors();
    Canvas canvas = new Canvas(size);
    canvas.fontSize((float) size.height * 0.58f);
    canvas.paintGradient(colors.background());
    canvas.drawBorder(colors.background().darker().darker().darker());
    canvas.drawCentralizedText(time.shortestString());

    cache.store(canvas.image(), iconName);

    return canvas.image();
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

public class Gradient extends CachedTheme {
 
  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    Color background = colors.background();
    canvas.paintGradient(background);
  }
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

@FriendlyName("Brushed metal")
public class BrushedMetal extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    BrushedMetalFilter filter = new BrushedMetalFilter();
    filter.setColor(colors.background().getRGB());
    filter.setRadius(10);
    filter.setAmount(0.15f);
    filter.setMonochrome(true);
    filter.setShine(0.2f);
    canvas.applyFilter(filter);
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

public class Grainy extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    canvas.paintGradient(colors.background());
    NoiseFilter filter = new NoiseFilter();
    filter.setMonochrome(true);
    filter.setDensity(0.5f);
    filter.setAmount(13);
    canvas.applyFilter(filter);
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

public class Shiny extends CachedTheme {

  @Override
  public void paint(Canvas canvas, Look look) {
    Colors colors = look.colors();
    Color background = colors.background();
    Color bright = background.brighter().brighter();
    Color dark = background.darker();
    canvas.paintShinyBackground(bright, dark);
  }
View Full Code Here

Examples of org.tomighty.ui.theme.Colors

    private boolean canRenderAllCharacters(Font font) {
      return false;
    }

    private void drawLines(WrappedLines lines, Graphics2D g) {
      Colors colors = look.colors();
      float y = originY(lines);
      for(TextLayout line : lines.list) {
        float x = xFor(line);
        y += line.getAscent() - line.getDescent();
        Color shadowColor = colors.shadow();
        g.setColor(shadowColor);
        line.draw(g, x-1, y-1);
        g.setColor(colors.text());
        line.draw(g, x, y);
        y += line.getDescent();
      }
    }
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.