SlideShare a Scribd company logo
1 of 4
Npm : 201243501128
Nama : Kiuntoro
Kelas : R7H
Mata Kuliah : Komputer Grafik
Dosen : Nahot Frastian , M.Kom
Program Studi : Teknik Informatika
Universitas : Universitas Indraprasta Pgri
Program Komputer Grafik :
- Program Uts
Input :
import java.awt.Graphics ;
import java.awt.Color;
public class uts extends java.applet.Applet {
private static Color abu = new Color (204,204,204) ;
private static Color abu2 = new Color (153,153,153);
private static Color pink = new Color (255,51,51) ;
private static Color biru = new Color (51,51,255);
private static Color pink2 = new Color (255,0,102) ;
public void paint ( Graphics g ) {
setBackground ( Color.black ) ;
// ini buat line
g.setColor ( Color.yellow );
g.drawLine (0,180,100,0);
g.drawString ( " Line 2D " ,20,200);
g.setColor ( Color.blue );
g.fillRect ( 110,0,150,180 ) ;
g.drawString ( " fillRectangLe2D " ,110,200);
g.setColor ( Color.green );
g.drawRoundRect ( 280,0,150,180,10,10 ) ;
g.drawString ( " RoundRectangLe2D " ,280,200);
g.setColor ( Color.yellow ) ;
g.drawArc ( 450,0,150,180,70,200 ) ;
g.drawString ( "Arc2D " , 480,200 ) ;
g.setColor ( abu );
g.fillOval ( 620,0,150,180 ) ;
g.drawString ( " filledElipse2D " ,640,200);
g.setColor ( Color.blue );
g.drawRect ( 0,230,100,180 ) ;
g.drawString ( " RectangLe2D " ,10,430);
g.setColor ( Color.yellow );
g.fillRect ( 110,230,150,180 ) ;
g.drawString ( " fillRectangLe2D " ,110,430);
g.setColor ( abu2 );
g.fillArc ( 280,230,150,180,65,-285 ) ;
g.drawString ( " fillArc2D " ,300,430);
g.setColor ( pink );
g.drawArc ( 450,230,150,180,0,245 ) ;
g.drawLine ( 493,400,600,320);
g.drawString ( " Arc2D " ,480,430);
g.setColor ( biru );
g.drawOval ( 620,230,150,180 ) ;
g.setColor ( pink2 ) ;
g.fillOval ( 622,232,148,178);
g.drawString ( " filledElipse2D " ,640,430);
}
}
Proses :
 drawString : kordinat x nya : 0 dan kordinat Y nya :50 , sedangkan kata String
nya : Java Graphics Basic
 drawLine nya : kordinat x1 nya 5 , x2 nya = 150 , y1 = 100 , y2 = 250
 Lalu warna yang di gunakan adalah warna merah ( setColor )
 drawRect : kordinat x1 nya 50 , x2 nya = 150 , y1 = 100 , y2 = 250
 drawRoundRect x1 = 50 ,int y = 150 , int width = 150 , int height = 250 , int
xdiam=6 , int ydiam = 12
 drawOval : kordinat x1 nya 150 , x2 nya = 250 , y1 = 100 , y2 = 55
 drawArc x1 = 50 ,int y = 100 , int width = 150 , int height = 275 , int
statangle=95 , int arcangle = 15
Output :

More Related Content

What's hot

1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numerosBea Marfer
 
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminariesManas Mantri
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringpaksukur
 
Lecture on graphics
Lecture on graphicsLecture on graphics
Lecture on graphicsRafi_Dar
 
analog clock C#
analog clock C#analog clock C#
analog clock C#omeed
 
Prelim exam algebra
Prelim exam   algebraPrelim exam   algebra
Prelim exam algebraDanny Albay
 
Lista Plantão 03 - 7º ano
Lista Plantão 03 - 7º anoLista Plantão 03 - 7º ano
Lista Plantão 03 - 7º anoProf. Materaldo
 
Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Mzr Zia
 
Lista plantão 04 - 7º ano
Lista plantão   04 - 7º anoLista plantão   04 - 7º ano
Lista plantão 04 - 7º anoProf. Materaldo
 
Worksheet 3 addition & subtraction
Worksheet 3 addition & subtractionWorksheet 3 addition & subtraction
Worksheet 3 addition & subtractionkrunamthip
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++Swarup Boro
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Deborah_Johnson
 

What's hot (20)

Parentesi
ParentesiParentesi
Parentesi
 
1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros
 
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminaries
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoring
 
Lecture on graphics
Lecture on graphicsLecture on graphics
Lecture on graphics
 
Flood Filling Algorithm in C
Flood Filling Algorithm in CFlood Filling Algorithm in C
Flood Filling Algorithm in C
 
Java session14
Java session14Java session14
Java session14
 
Ruby常用写法
Ruby常用写法Ruby常用写法
Ruby常用写法
 
Ques 8
Ques 8Ques 8
Ques 8
 
analog clock C#
analog clock C#analog clock C#
analog clock C#
 
Ques 8
Ques 8Ques 8
Ques 8
 
Prelim exam algebra
Prelim exam   algebraPrelim exam   algebra
Prelim exam algebra
 
Lista Plantão 03 - 7º ano
Lista Plantão 03 - 7º anoLista Plantão 03 - 7º ano
Lista Plantão 03 - 7º ano
 
Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)
 
Lista plantão 04 - 7º ano
Lista plantão   04 - 7º anoLista plantão   04 - 7º ano
Lista plantão 04 - 7º ano
 
Worksheet 3 addition & subtraction
Worksheet 3 addition & subtractionWorksheet 3 addition & subtraction
Worksheet 3 addition & subtraction
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!
 
สูตร
สูตรสูตร
สูตร
 
เฉลยแบบฝึกหัดบทที่ 1
เฉลยแบบฝึกหัดบทที่ 1เฉลยแบบฝึกหัดบทที่ 1
เฉลยแบบฝึกหัดบทที่ 1
 

Viewers also liked

Reference_Shaun du Plessis1 (1)
Reference_Shaun du Plessis1 (1)Reference_Shaun du Plessis1 (1)
Reference_Shaun du Plessis1 (1)Shaun Du Plessis
 
Le parcours de la bande de Petite-Synthe 2017
Le parcours de la bande de Petite-Synthe 2017Le parcours de la bande de Petite-Synthe 2017
Le parcours de la bande de Petite-Synthe 2017Jean-michel Neugate
 
Patrick McKinley -- Business Strategy and Technology Driving Approach
Patrick McKinley -- Business Strategy and Technology Driving ApproachPatrick McKinley -- Business Strategy and Technology Driving Approach
Patrick McKinley -- Business Strategy and Technology Driving ApproachPatrick A. McKinley
 
WS2_FINAL_MITOS_T03_v20151102
WS2_FINAL_MITOS_T03_v20151102WS2_FINAL_MITOS_T03_v20151102
WS2_FINAL_MITOS_T03_v20151102Arun Sankar
 
Europass-CV-20150709-Sutestad-EN
Europass-CV-20150709-Sutestad-ENEuropass-CV-20150709-Sutestad-EN
Europass-CV-20150709-Sutestad-ENSunniva Sutestad
 
Classement des députés du Nord et du Pas-de-Calais
Classement des députés du Nord et du Pas-de-CalaisClassement des députés du Nord et du Pas-de-Calais
Classement des députés du Nord et du Pas-de-CalaisJean-michel Neugate
 
Editors' influence on passive use in English-German business translation
Editors' influence on passive use in English-German business translationEditors' influence on passive use in English-German business translation
Editors' influence on passive use in English-German business translationMario Bisiada
 

Viewers also liked (11)

Non omniscience
Non omniscienceNon omniscience
Non omniscience
 
Reference_Shaun du Plessis1 (1)
Reference_Shaun du Plessis1 (1)Reference_Shaun du Plessis1 (1)
Reference_Shaun du Plessis1 (1)
 
Le parcours de la bande de Petite-Synthe 2017
Le parcours de la bande de Petite-Synthe 2017Le parcours de la bande de Petite-Synthe 2017
Le parcours de la bande de Petite-Synthe 2017
 
Patrick McKinley -- Business Strategy and Technology Driving Approach
Patrick McKinley -- Business Strategy and Technology Driving ApproachPatrick McKinley -- Business Strategy and Technology Driving Approach
Patrick McKinley -- Business Strategy and Technology Driving Approach
 
Access Platform
Access PlatformAccess Platform
Access Platform
 
WS2_FINAL_MITOS_T03_v20151102
WS2_FINAL_MITOS_T03_v20151102WS2_FINAL_MITOS_T03_v20151102
WS2_FINAL_MITOS_T03_v20151102
 
Europass-CV-20150709-Sutestad-EN
Europass-CV-20150709-Sutestad-ENEuropass-CV-20150709-Sutestad-EN
Europass-CV-20150709-Sutestad-EN
 
Plan de la bande de Malo
Plan de la bande de MaloPlan de la bande de Malo
Plan de la bande de Malo
 
Classement des députés du Nord et du Pas-de-Calais
Classement des députés du Nord et du Pas-de-CalaisClassement des députés du Nord et du Pas-de-Calais
Classement des députés du Nord et du Pas-de-Calais
 
Editors' influence on passive use in English-German business translation
Editors' influence on passive use in English-German business translationEditors' influence on passive use in English-German business translation
Editors' influence on passive use in English-German business translation
 
AGBT2017 Reference Workshop: Fulton
AGBT2017 Reference Workshop: FultonAGBT2017 Reference Workshop: Fulton
AGBT2017 Reference Workshop: Fulton
 

Similar to Npm 201243501128 Program Komputer Grafik

Similar to Npm 201243501128 Program Komputer Grafik (20)

Basis grafik
Basis grafikBasis grafik
Basis grafik
 
Basis graphics
Basis graphicsBasis graphics
Basis graphics
 
Warna rgb
Warna rgbWarna rgb
Warna rgb
 
Kuis 1 b
Kuis 1 bKuis 1 b
Kuis 1 b
 
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdfbfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
 
Introduction to graphics programming in c
Introduction to graphics programming in cIntroduction to graphics programming in c
Introduction to graphics programming in c
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 
Graphics in C++
Graphics in C++Graphics in C++
Graphics in C++
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Clock For My
Clock For MyClock For My
Clock For My
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignment
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]
 
Circles graphic
Circles graphicCircles graphic
Circles graphic
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
 
Computer graphics practical(jainam)
Computer graphics practical(jainam)Computer graphics practical(jainam)
Computer graphics practical(jainam)
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
 
662305 LAB13
662305 LAB13662305 LAB13
662305 LAB13
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
 

More from kiuntoro

More from kiuntoro (20)

Makalah Komgraf
Makalah KomgrafMakalah Komgraf
Makalah Komgraf
 
Presentasi makalah
Presentasi makalahPresentasi makalah
Presentasi makalah
 
Soal2
Soal2Soal2
Soal2
 
Soal1b
Soal1bSoal1b
Soal1b
 
Soal1a
Soal1aSoal1a
Soal1a
 
Satutitikhilang
SatutitikhilangSatutitikhilang
Satutitikhilang
 
Myline2d
Myline2dMyline2d
Myline2d
 
Lampu(kreatifitas)
Lampu(kreatifitas)Lampu(kreatifitas)
Lampu(kreatifitas)
 
Font1
Font1Font1
Font1
 
Font
FontFont
Font
 
Program project khusus
Program project khususProgram project khusus
Program project khusus
 
Myline3
Myline3Myline3
Myline3
 
Myline1
Myline1Myline1
Myline1
 
Myline
MylineMyline
Myline
 
Line2
Line2Line2
Line2
 
Kotak
KotakKotak
Kotak
 
Grafikbatang
GrafikbatangGrafikbatang
Grafikbatang
 
Grafik
GrafikGrafik
Grafik
 
Garis
GarisGaris
Garis
 
Drawoval
DrawovalDrawoval
Drawoval
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

Npm 201243501128 Program Komputer Grafik

  • 1. Npm : 201243501128 Nama : Kiuntoro Kelas : R7H Mata Kuliah : Komputer Grafik Dosen : Nahot Frastian , M.Kom Program Studi : Teknik Informatika Universitas : Universitas Indraprasta Pgri Program Komputer Grafik : - Program Uts Input : import java.awt.Graphics ; import java.awt.Color; public class uts extends java.applet.Applet { private static Color abu = new Color (204,204,204) ; private static Color abu2 = new Color (153,153,153); private static Color pink = new Color (255,51,51) ; private static Color biru = new Color (51,51,255); private static Color pink2 = new Color (255,0,102) ; public void paint ( Graphics g ) {
  • 2. setBackground ( Color.black ) ; // ini buat line g.setColor ( Color.yellow ); g.drawLine (0,180,100,0); g.drawString ( " Line 2D " ,20,200); g.setColor ( Color.blue ); g.fillRect ( 110,0,150,180 ) ; g.drawString ( " fillRectangLe2D " ,110,200); g.setColor ( Color.green ); g.drawRoundRect ( 280,0,150,180,10,10 ) ; g.drawString ( " RoundRectangLe2D " ,280,200); g.setColor ( Color.yellow ) ; g.drawArc ( 450,0,150,180,70,200 ) ; g.drawString ( "Arc2D " , 480,200 ) ; g.setColor ( abu ); g.fillOval ( 620,0,150,180 ) ; g.drawString ( " filledElipse2D " ,640,200); g.setColor ( Color.blue ); g.drawRect ( 0,230,100,180 ) ; g.drawString ( " RectangLe2D " ,10,430); g.setColor ( Color.yellow ); g.fillRect ( 110,230,150,180 ) ; g.drawString ( " fillRectangLe2D " ,110,430); g.setColor ( abu2 ); g.fillArc ( 280,230,150,180,65,-285 ) ; g.drawString ( " fillArc2D " ,300,430); g.setColor ( pink ); g.drawArc ( 450,230,150,180,0,245 ) ; g.drawLine ( 493,400,600,320); g.drawString ( " Arc2D " ,480,430); g.setColor ( biru ); g.drawOval ( 620,230,150,180 ) ; g.setColor ( pink2 ) ; g.fillOval ( 622,232,148,178);
  • 3. g.drawString ( " filledElipse2D " ,640,430); } } Proses :  drawString : kordinat x nya : 0 dan kordinat Y nya :50 , sedangkan kata String nya : Java Graphics Basic  drawLine nya : kordinat x1 nya 5 , x2 nya = 150 , y1 = 100 , y2 = 250  Lalu warna yang di gunakan adalah warna merah ( setColor )  drawRect : kordinat x1 nya 50 , x2 nya = 150 , y1 = 100 , y2 = 250  drawRoundRect x1 = 50 ,int y = 150 , int width = 150 , int height = 250 , int xdiam=6 , int ydiam = 12  drawOval : kordinat x1 nya 150 , x2 nya = 250 , y1 = 100 , y2 = 55  drawArc x1 = 50 ,int y = 100 , int width = 150 , int height = 275 , int statangle=95 , int arcangle = 15