0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

マクロ(L&S)

Posted at

今回もレイアウトマクロを紹介していく。
今回は以下の様なL&Sのパターンを描画するマクロを作成した。
image.png

以下のマクロを実行すればL&Sを描画できる

#!/usr/bin/layout
#name=donut array
#help=an array of donut with different parameter


int main(){
  int w=100000;                       //短辺の長さ
  int p=500000;                       //ピッチの長さ
  int l=1000000;                      //長辺の長さ
  int n=5;                             //繰り返しの回数
  int x=0;

  for(x=0;x<n;x++){
 
  //矩形を作成
  layout->drawing->point(0 + x*p, 0);
  layout->drawing->point(w + x*p, 0);
  layout->drawing->point(w + x*p, l);
  layout->drawing->point(0 + x*p, l);
  layout->drawing->polygon();
  layout->drawing->currentCell->firstElement->thisElement->selectAll();
  
  }
                 }

今日はここまで

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?