図形描画(ClosedCurve)

DrawClosedCurveのサンプル

ClosedCurve

require('color')
gra = f_Graphics()
f_SetTitle("Luaスクリプト:DrawCloseCurve")
po = {
  gdi:Point(20, 80),
  gdi:Point(80, 30),
  gdi:Point(20, 40),
  gdi:Point(90,120),
  gdi:Point(10,110)
}
penred = gdi:Pen(Color.Red, 3)
penyellow = gdi:Pen(Color.Yellow, 3)
gra:DrawPolygon(penred, po)
gra:TranslateTransform(100, 0)
gra:DrawClosedCurve(penyellow, po)
gra:ResetTransform()
x = "Polygon            ClosedCurve"
 
comments powered by Disqus