Embed presentation
Download to read offline
![Npm : 201243501163
Nama : Hamim Suyuti
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);
g.fillPolygon(exes,whys,pts);
}
}](https://image.slidesharecdn.com/polygon-151209095829-lva1-app6892/85/Polygon-1-320.jpg)


The document details a programming assignment for a computer graphics course conducted by lecturer Nahot Frastian at Universitas Indraprasta PGRI. It includes a Java code snippet for creating and filling a polygon based on specified coordinates. The student is identified as Hamim Suyuti, with a class designation of R7H in the Computer Science department.
![Npm : 201243501163
Nama : Hamim Suyuti
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);
g.fillPolygon(exes,whys,pts);
}
}](https://image.slidesharecdn.com/polygon-151209095829-lva1-app6892/85/Polygon-1-320.jpg)

