/*
 EGGX を使ったサンプル  473088 榎田裕一郎
*/
#include <stdio.h>
#include <stdlib.h>
#include <eggx.h>

int main() {
  int win;
  float x,y;

  win=gopen(400,400);  /* 描画ウィンドウを開く */
  winname(win, "sample 1"); /* 名前をつける */

  newpen(win, 4);  /* 描画する色を設定 */
  
  x=10.0; y=20.0; /* x,y の初期座標位置 */

  while( y < 380.0 ) {
    fillrect(win, x, y, 380.0, 10.0);
    y=y+20.0;
  }

  ggetch(win); /* キー入力を待つ */
  gclose(win); /* 描画ウィンドウを閉じる */

  return 0;
}
