Beispiel #1
0
    protected void constructUnitSquare(Vector4 color, float size) {
      unitSquare = context.getOutput().createTemplate(size, size);

      unitSquare.circle(size / 2, size / 2, size / 2);

      unitSquare.setColorFill(new Color(clamp(color.x), clamp(color.y), clamp(color.z)));
      unitSquare.fill();
    }