API version 1

- ‐

R

integer

type

グラデーションの種類を取得します。

定数一覧

------------------------------------------------------------

定数値

説明

LINE

1:線形グラデーション

RADIAL

2:放射グラデーション

CONICAL

3:円錐グラデーション



使用例 CRSダウンロード

Form Gradient {
   x = 0;
   y = 0;
   width = 800;
   height = 600;

   Chart chart1 {
           x = 10;
           y = 20;
           width = 180;
           height = 100;
           title = "サンプル1(線形)";
           var gra = new Gradient( 1 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "CYAN");
           gra.setLineStartPoint(0.2,0.3) ;
           gra.setLineStopPoint(0.8,0.8) ;
           bgcolor = gra ;
   }
   Chart chart2 {
           x = 210;
           y = 20;
           width = 180;
           height = 100;
           title = "サンプル1(線形)";
           var gra = new Gradient( 1 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "CYAN");
           gra.lineDirection = 3;
           bgcolor = gra ;
           print("type = ",gra.type) ;
   }
   Chart chart3 {
           x = 10;
           y = 130;
           width = 180;
           height = 100;
           title = "サンプル2(放射)";
           var gra = new Gradient( 2 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "RED");
           gra.setRadialFocalPoint(0.3,0.3) ;
           gra.setRadialStartPoint(0.6,0.6) ;
           bgcolor = gra ;
   }
   Chart chart4 {
           x = 210;
           y = 130;
           width = 180;
           height = 100;
           title = "サンプル2(放射)";
           var gra = new Gradient( 2 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "RED");
           gra.radialSize = 0.3 ; # 円の大きさ
           gra.spread = 3 ; #広がり方
           bgcolor = gra ;
           print("type = ",gra.type) ;
   }
   Chart chart5 {
           x = 10;
           y = 240;
           width = 180;
           height = 100;
           title = "サンプル3(円錐)";
           var gra = new Gradient( 3 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "CYAN");
           gra.setConicalStartPoint(0.5,0.5) ;
           bgcolor = gra ;
   }
   Chart chart6 {
           x = 210;
           y = 240;
           width = 180;
           height = 100;
           title = "サンプル3(円錐)";
           var gra = new Gradient( 3 ) ;
           gra.setColorPoint(0.0, "YELLOW");
           gra.setColorPoint(1.0, "CYAN");
           gra.setConicalStartPoint(0.5,0.5) ;
           gra.conicalAngle = 180 ;
           bgcolor = gra ;
           print("type = ",gra.type) ;
   }
}