Package vash.operation

Examples of vash.operation.LinearGradient


  @Test public void testConstGreen()   { this.runTest("1102", c1N(), c1P(), c1N()); }
  @Test public void testConstBlue()   { this.runTest("1103", c1N(), c1N(), c1P()); }
  @Test public void testConstMagenta(){ this.runTest("1104", c1P(), c1N(), c1P()); }
 
  // linear gradient
  @Test public void testLinGradDiagLeftFill()  { this.runTest("2101", new LinearGradient(0, 0, 1, 1)); }
View Full Code Here


  @Test public void testConstBlue()   { this.runTest("1103", c1N(), c1N(), c1P()); }
  @Test public void testConstMagenta(){ this.runTest("1104", c1P(), c1N(), c1P()); }
 
  // linear gradient
  @Test public void testLinGradDiagLeftFill()  { this.runTest("2101", new LinearGradient(0, 0, 1, 1)); }
  @Test public void testLinGradDiagRightFill() { this.runTest("2102", new LinearGradient(-1, -1, 0, 0)); }
View Full Code Here

 
  // linear gradient
  @Test public void testLinGradDiagLeftFill()  { this.runTest("2101", new LinearGradient(0, 0, 1, 1)); }
  @Test public void testLinGradDiagRightFill() { this.runTest("2102", new LinearGradient(-1, -1, 0, 0)); }
  // Note: the rest of these codify existing, non-optimal behavior
  @Test public void testLinGradDiagNorthSouth(){ this.runTest("2103", new LinearGradient(0, -1, 0, 1)); }
View Full Code Here

  // linear gradient
  @Test public void testLinGradDiagLeftFill()  { this.runTest("2101", new LinearGradient(0, 0, 1, 1)); }
  @Test public void testLinGradDiagRightFill() { this.runTest("2102", new LinearGradient(-1, -1, 0, 0)); }
  // Note: the rest of these codify existing, non-optimal behavior
  @Test public void testLinGradDiagNorthSouth(){ this.runTest("2103", new LinearGradient(0, -1, 0, 1)); }
  @Test public void testLinGradDiagSouthNorth(){ this.runTest("2104", new LinearGradient(0, 1, 0, -1)); }
View Full Code Here

  @Test public void testLinGradDiagNorthSouth(){ this.runTest("2103", new LinearGradient(0, -1, 0, 1)); }
  @Test public void testLinGradDiagSouthNorth(){ this.runTest("2104", new LinearGradient(0, 1, 0, -1)); }
  @Test public void testLinGradDiagNonSquareNorthSouth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
View Full Code Here

    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
  @Test public void testLinGradDiagNonSquareSouthNorth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2106", new LinearGradient(0, 1, 0, -1)); }
View Full Code Here

  @Test public void testLinGradDiagNonSquareSouthNorth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2106", new LinearGradient(0, 1, 0, -1)); }
  @Test public void testLinGradDiagNorthSouthTiltedBig()  {
    this.runTest("2107", new LinearGradient(0, -1, 1, 1)); }
View Full Code Here

    this.opt.setWidth(256);
    this.runTest("2106", new LinearGradient(0, 1, 0, -1)); }
  @Test public void testLinGradDiagNorthSouthTiltedBig()  {
    this.runTest("2107", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNorthSouthTiltedSmall()  {
    this.runTest("2108", new LinearGradient(0, -1, 0.09, 1)); }
View Full Code Here

  @Test public void testLinGradDiagNorthSouthTiltedSmall()  {
    this.runTest("2108", new LinearGradient(0, -1, 0.09, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
View Full Code Here

    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedSmall()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2110", new LinearGradient(0, -1, 0.09, 1)); }
View Full Code Here

TOP

Related Classes of vash.operation.LinearGradient

Copyright © 2018 www.massapicom. 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.