Polygon

4
Npm : 2012 4350 1128 Nama : Kiuntoro Kelas : R7H Mata Kuliah : Komputer Grafik Dosen : Nahot Frastian, M.Kom Program Studi : Teknik Informatika Universitas : Universitas Indraprasta PGRI Program Komputer Grafik : - Kotak3D Input : import java.awt.Graphics; public class Polygon extends java.applet.Applet { public void paint (Graphics g) { int exes[]= {39,94,97,142,53,58,26}; int whys[]= {33,74,36,70,108,80,106}; int pts= exes.length;

Transcript of Polygon

Page 1: Polygon

Npm : 2012 4350 1128

Nama : Kiuntoro

Kelas : R7H

Mata Kuliah : Komputer Grafik

Dosen : Nahot Frastian, M.Kom

Program Studi : Teknik Informatika

Universitas : Universitas Indraprasta PGRI

Program Komputer Grafik :

- Kotak3D

Input :

import java.awt.Graphics;

public class Polygon extends java.applet.Applet{ public void paint (Graphics g) { int exes[]= {39,94,97,142,53,58,26}; int whys[]= {33,74,36,70,108,80,106}; int pts= exes.length; g.drawPolygon(exes,whys,pts); }}

Page 2: Polygon
Page 3: Polygon

Output :