SlideShare a Scribd company logo
1 of 3
Logo
Npm : 201243501190
Nama : Reza Fahlevi
Kelas : R7H
Mata Kuliah : Komputer Grafik
Dosen : Nahot Frastian , M.Kom
Program Studi : Teknik Informatika
Universitas : Universitas Indraprasta Pgri
Program Komputer Grafik :
- Line Oval String
Input :
import java.awt.Graphics ;
public class tugas extends java.applet.Applet {
public void paint ( Graphics g ) {
g.drawLine ( 100,100,200,200 ) ;
g.drawString ( " Komputer Graphics , Dosen : Nahot Frastian, M,Kom",50,90
) ;
g.drawOval ( 200,200 , 300 ,100 ) ;
}
}
Proses :
 drawString : kordinat x nya : 50 dan kordinat Y nya : 90 , sedangkan kata
String nya : Komputer Graphics , Dosen : Nahot Frastian, M,Kom
 drawLine nya : kordinat x1 nya 100 , x2 nya = 200 , y1 = 100 , y2 = 200
 draw Oval : kordinatnya : x1 = 200 , y1 = 200 , x2 = 300 , y2 = 100
Output :
Oval , string , line

More Related Content

What's hot

Bai lam chuong 3
Bai lam chuong 3Bai lam chuong 3
Bai lam chuong 3
tran thai
 

What's hot (16)

Soal1a
Soal1aSoal1a
Soal1a
 
My ovalsetengah
My ovalsetengahMy ovalsetengah
My ovalsetengah
 
My ovalacak
My ovalacakMy ovalacak
My ovalacak
 
Myline
MylineMyline
Myline
 
Myovalacak
MyovalacakMyovalacak
Myovalacak
 
Myline
MylineMyline
Myline
 
Bintang2
Bintang2Bintang2
Bintang2
 
My ovalsetengah
My ovalsetengahMy ovalsetengah
My ovalsetengah
 
Myline3
Myline3Myline3
Myline3
 
Myline
MylineMyline
Myline
 
Arc
ArcArc
Arc
 
Polygonbiasa
PolygonbiasaPolygonbiasa
Polygonbiasa
 
Polygon
PolygonPolygon
Polygon
 
Myoval2
Myoval2Myoval2
Myoval2
 
Polygon
PolygonPolygon
Polygon
 
Bai lam chuong 3
Bai lam chuong 3Bai lam chuong 3
Bai lam chuong 3
 

Viewers also liked

Limitations of self report
Limitations of self reportLimitations of self report
Limitations of self report
Andrew Pearce
 

Viewers also liked (14)

Final Portfolio - Kailin Beck
Final Portfolio - Kailin BeckFinal Portfolio - Kailin Beck
Final Portfolio - Kailin Beck
 
Segiempat1
Segiempat1Segiempat1
Segiempat1
 
Matematika diskrit melalui permainan the tower of hanoi dan the wheel of theo...
Matematika diskrit melalui permainan the tower of hanoi dan the wheel of theo...Matematika diskrit melalui permainan the tower of hanoi dan the wheel of theo...
Matematika diskrit melalui permainan the tower of hanoi dan the wheel of theo...
 
13 a luanncrossley
13 a luanncrossley13 a luanncrossley
13 a luanncrossley
 
Grafik batang
Grafik batangGrafik batang
Grafik batang
 
La comune a1 n20 30settembre
La comune a1 n20 30settembreLa comune a1 n20 30settembre
La comune a1 n20 30settembre
 
Gorilas - Tudo sobre Gorilas
Gorilas - Tudo sobre GorilasGorilas - Tudo sobre Gorilas
Gorilas - Tudo sobre Gorilas
 
20 hour SAFE Loan Originator Pre-Licensing 2016-2017 slides
20 hour SAFE Loan Originator Pre-Licensing 2016-2017 slides20 hour SAFE Loan Originator Pre-Licensing 2016-2017 slides
20 hour SAFE Loan Originator Pre-Licensing 2016-2017 slides
 
Orient db study
Orient db studyOrient db study
Orient db study
 
Limitations of self report
Limitations of self reportLimitations of self report
Limitations of self report
 
Grade 11,U3 L4-resistance in Series and Parallel CCT's
Grade 11,U3 L4-resistance in Series and Parallel CCT'sGrade 11,U3 L4-resistance in Series and Parallel CCT's
Grade 11,U3 L4-resistance in Series and Parallel CCT's
 
O que é o espiritismo
O que é o espiritismoO que é o espiritismo
O que é o espiritismo
 
Planeador grado 11 2017
Planeador grado 11 2017Planeador grado 11 2017
Planeador grado 11 2017
 
pewarnaan graf
pewarnaan grafpewarnaan graf
pewarnaan graf
 

More from fahlevizha

More from fahlevizha (20)

Makalah komgraf
Makalah komgrafMakalah komgraf
Makalah komgraf
 
PPT Komgraf
PPT KomgrafPPT Komgraf
PPT Komgraf
 
Aplikasi program komputer grafik
Aplikasi program komputer grafikAplikasi program komputer grafik
Aplikasi program komputer grafik
 
Warnargb
WarnargbWarnargb
Warnargb
 
Satutitikhilang
SatutitikhilangSatutitikhilang
Satutitikhilang
 
My line2d
My line2dMy line2d
My line2d
 
Font1
Font1Font1
Font1
 
Font
FontFont
Font
 
Uts
UtsUts
Uts
 
Tugas no 2
Tugas no 2Tugas no 2
Tugas no 2
 
Tugas no 1 b
Tugas no 1 bTugas no 1 b
Tugas no 1 b
 
Tugas no 1 a
Tugas no 1 aTugas no 1 a
Tugas no 1 a
 
Segiempat
SegiempatSegiempat
Segiempat
 
Rumah
RumahRumah
Rumah
 
Rect
RectRect
Rect
 
Mypoly
MypolyMypoly
Mypoly
 
Myoval
MyovalMyoval
Myoval
 
Lamp
LampLamp
Lamp
 
Kotak3d
Kotak3dKotak3d
Kotak3d
 
Grafik garis
Grafik garisGrafik garis
Grafik garis
 

Oval , string , line

  • 1. Logo Npm : 201243501190 Nama : Reza Fahlevi Kelas : R7H Mata Kuliah : Komputer Grafik Dosen : Nahot Frastian , M.Kom Program Studi : Teknik Informatika Universitas : Universitas Indraprasta Pgri Program Komputer Grafik : - Line Oval String Input : import java.awt.Graphics ; public class tugas extends java.applet.Applet { public void paint ( Graphics g ) { g.drawLine ( 100,100,200,200 ) ; g.drawString ( " Komputer Graphics , Dosen : Nahot Frastian, M,Kom",50,90 ) ; g.drawOval ( 200,200 , 300 ,100 ) ; } }
  • 2. Proses :  drawString : kordinat x nya : 50 dan kordinat Y nya : 90 , sedangkan kata String nya : Komputer Graphics , Dosen : Nahot Frastian, M,Kom  drawLine nya : kordinat x1 nya 100 , x2 nya = 200 , y1 = 100 , y2 = 200  draw Oval : kordinatnya : x1 = 200 , y1 = 200 , x2 = 300 , y2 = 100 Output :