SlideShare a Scribd company logo
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 :
- BasisGraphics
Input :
import java.awt.Graphics ;
import java.awt.Color ;
public class basisgrapik extends java.applet.Applet {
public void paint ( Graphics g ) {
int xpts [] = {5,25,50,30,15,5};
int ypts [] = { 10, 35 ,20 ,65, 40, 10 } ;
g.drawString ( " Java Graphics Basic ",0 , 50 ) ;
g.drawLine (5,100,150,250) ;
g.setColor ( Color.red ) ;
g.drawRect ( 50,100,150,250) ;
g.drawRoundRect ( 50 , 150 , 150,250 , 6 , 12 ) ;
g.drawPolygon ( xpts , ypts , xpts.length ) ;
// Cara Lain Buat Polygon
//Polygon poly = new Polygon (xpts + 100 , ypts+100 , xpts.length ) ;
// g.fillPolygon ( poly);
g.drawOval (150,100,250,55 ) ;
g.drawArc ( 50,100,150,275,95,115);
}
}
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

Java session14
Java session14Java session14
Java session14
Jigarthacker
 
Uts
UtsUts
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminaries
Manas Mantri
 
SPL 10.1 | Manual Tracing on Basic Loop & 1D Array
SPL 10.1 | Manual Tracing on Basic Loop & 1D ArraySPL 10.1 | Manual Tracing on Basic Loop & 1D Array
SPL 10.1 | Manual Tracing on Basic Loop & 1D Array
Mohammad Imam Hossain
 
Day 4 evaluating with add and subtract
Day 4 evaluating with add and subtractDay 4 evaluating with add and subtract
Day 4 evaluating with add and subtract
Erik Tjersland
 
Linear programming assignment help
Linear programming assignment helpLinear programming assignment help
Linear programming assignment help
Statistics Help Desk
 
Function Families
Function FamiliesFunction Families
Function Families
Bitsy Griffin
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
Anel Sosa
 
Snowboards r us
Snowboards r usSnowboards r us
Snowboards r us
gueste1bd3dc
 
Linear regression
Linear regression Linear regression
Linear regression
mohamed Naas
 
Progre ppt
Progre  pptProgre  ppt
Progre ppt
Vinay Sirivara
 
Propof identequal.ppt
Propof identequal.pptPropof identequal.ppt
Propof identequal.ppt
aikes88
 

What's hot (12)

Java session14
Java session14Java session14
Java session14
 
Uts
UtsUts
Uts
 
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminaries
 
SPL 10.1 | Manual Tracing on Basic Loop & 1D Array
SPL 10.1 | Manual Tracing on Basic Loop & 1D ArraySPL 10.1 | Manual Tracing on Basic Loop & 1D Array
SPL 10.1 | Manual Tracing on Basic Loop & 1D Array
 
Day 4 evaluating with add and subtract
Day 4 evaluating with add and subtractDay 4 evaluating with add and subtract
Day 4 evaluating with add and subtract
 
Linear programming assignment help
Linear programming assignment helpLinear programming assignment help
Linear programming assignment help
 
Function Families
Function FamiliesFunction Families
Function Families
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
 
Snowboards r us
Snowboards r usSnowboards r us
Snowboards r us
 
Linear regression
Linear regression Linear regression
Linear regression
 
Progre ppt
Progre  pptProgre  ppt
Progre ppt
 
Propof identequal.ppt
Propof identequal.pptPropof identequal.ppt
Propof identequal.ppt
 

Viewers also liked

Presentación yetsy extincion obligacion tributaria.
Presentación yetsy extincion obligacion tributaria.Presentación yetsy extincion obligacion tributaria.
Presentación yetsy extincion obligacion tributaria.
yetsycardenas
 
Segiempat1
Segiempat1Segiempat1
Segiempat1
kiuntoro
 
praktek Ms. PowerPoint
praktek Ms. PowerPointpraktek Ms. PowerPoint
praktek Ms. PowerPoint
Eka Sufitri
 
презентация1
презентация1презентация1
презентация1
Sasha Shavlach
 
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜIndustry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
Tsenter
 
Oval
OvalOval
Oval
kiuntoro
 
Milan Jurkovic Resume
Milan Jurkovic ResumeMilan Jurkovic Resume
Milan Jurkovic Resume
Milan E Jurkovic
 
Todo el mundo deberia saber programar
Todo el mundo deberia saber programarTodo el mundo deberia saber programar
Todo el mundo deberia saber programar
ravaprende
 
2015 Inflatable Pricelist
2015 Inflatable Pricelist2015 Inflatable Pricelist
2015 Inflatable Pricelist
pieter labuschagne
 
About Pulsetip [MB]
About Pulsetip [MB]About Pulsetip [MB]
About Pulsetip [MB]
Monika Brazdžiūtė
 
Presentation
PresentationPresentation
Presentation
Nicole Montano
 
Myoval2
Myoval2Myoval2
Myoval2
kiuntoro
 
Polygon
PolygonPolygon
Polygon
kiuntoro
 
The effect of sentence splitting on cohesion in German business translations
The effect of sentence splitting on cohesion in German business translationsThe effect of sentence splitting on cohesion in German business translations
The effect of sentence splitting on cohesion in German business translations
Mario Bisiada
 
Puidukuivatite simuleerimine
Puidukuivatite simuleeriminePuidukuivatite simuleerimine
Puidukuivatite simuleerimine
Tsenter
 
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev KaarnaMida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
Tsenter
 
Music in Schools
Music in SchoolsMusic in Schools
Music in Schools
Samuel Ennis
 
BAC
BACBAC

Viewers also liked (19)

Presentación yetsy extincion obligacion tributaria.
Presentación yetsy extincion obligacion tributaria.Presentación yetsy extincion obligacion tributaria.
Presentación yetsy extincion obligacion tributaria.
 
Segiempat1
Segiempat1Segiempat1
Segiempat1
 
praktek Ms. PowerPoint
praktek Ms. PowerPointpraktek Ms. PowerPoint
praktek Ms. PowerPoint
 
презентация1
презентация1презентация1
презентация1
 
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜIndustry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
Industry 4.0 mõtteviis - tuleviku tootmise efektiivne tööriist, Hyrles OÜ
 
Oval
OvalOval
Oval
 
Milan Jurkovic Resume
Milan Jurkovic ResumeMilan Jurkovic Resume
Milan Jurkovic Resume
 
Todo el mundo deberia saber programar
Todo el mundo deberia saber programarTodo el mundo deberia saber programar
Todo el mundo deberia saber programar
 
2015 Inflatable Pricelist
2015 Inflatable Pricelist2015 Inflatable Pricelist
2015 Inflatable Pricelist
 
prezi
preziprezi
prezi
 
About Pulsetip [MB]
About Pulsetip [MB]About Pulsetip [MB]
About Pulsetip [MB]
 
Presentation
PresentationPresentation
Presentation
 
Myoval2
Myoval2Myoval2
Myoval2
 
Polygon
PolygonPolygon
Polygon
 
The effect of sentence splitting on cohesion in German business translations
The effect of sentence splitting on cohesion in German business translationsThe effect of sentence splitting on cohesion in German business translations
The effect of sentence splitting on cohesion in German business translations
 
Puidukuivatite simuleerimine
Puidukuivatite simuleeriminePuidukuivatite simuleerimine
Puidukuivatite simuleerimine
 
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev KaarnaMida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
Mida tarkvara tootmisettevõttel teha ei aita? - Kalev Kaarna
 
Music in Schools
Music in SchoolsMusic in Schools
Music in Schools
 
BAC
BACBAC
BAC
 

Similar to Basic graphics

Program uts
Program utsProgram uts
Program uts
ditaerlita
 
Uts
UtsUts
java graphics
java graphicsjava graphics
java graphics
nilaykarade1
 
Warna rgb
Warna rgbWarna rgb
Warna rgb
kiuntoro
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
Vivek Kumar Sinha
 
Introduction to Generative Art with Processing
Introduction to Generative Art with ProcessingIntroduction to Generative Art with Processing
Introduction to Generative Art with Processing
stefk00
 
Applet life cycle
Applet life cycleApplet life cycle
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
Uma mohan
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
jeresig
 
Python 1 liners
Python 1 linersPython 1 liners
Python 1 liners
Nattawut Phetmak
 
Java Fx Overview Tech Tour
Java Fx Overview Tech TourJava Fx Overview Tech Tour
Java Fx Overview Tech Tour
Carol McDonald
 
Csci101 lect08a matlab_programs
Csci101 lect08a matlab_programsCsci101 lect08a matlab_programs
Csci101 lect08a matlab_programs
Elsayed Hemayed
 
Python 03-parameters-graphics.pptx
Python 03-parameters-graphics.pptxPython 03-parameters-graphics.pptx
Python 03-parameters-graphics.pptx
TseChris
 
JavaFX
JavaFXJavaFX
2Bytesprog2 course_2014_c9_graph
2Bytesprog2 course_2014_c9_graph2Bytesprog2 course_2014_c9_graph
2Bytesprog2 course_2014_c9_graph
kinan keshkeh
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
Prianka Padmanaban
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
Prianka Padmanaban
 
C programming
C programmingC programming
C programming
dezyneecole
 
C programming (Part 1)
C programming (Part 1)C programming (Part 1)
C programming (Part 1)
dezyneecole
 
Ansi c
Ansi cAnsi c

Similar to Basic graphics (20)

Program uts
Program utsProgram uts
Program uts
 
Uts
UtsUts
Uts
 
java graphics
java graphicsjava graphics
java graphics
 
Warna rgb
Warna rgbWarna rgb
Warna rgb
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
 
Introduction to Generative Art with Processing
Introduction to Generative Art with ProcessingIntroduction to Generative Art with Processing
Introduction to Generative Art with Processing
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
 
Python 1 liners
Python 1 linersPython 1 liners
Python 1 liners
 
Java Fx Overview Tech Tour
Java Fx Overview Tech TourJava Fx Overview Tech Tour
Java Fx Overview Tech Tour
 
Csci101 lect08a matlab_programs
Csci101 lect08a matlab_programsCsci101 lect08a matlab_programs
Csci101 lect08a matlab_programs
 
Python 03-parameters-graphics.pptx
Python 03-parameters-graphics.pptxPython 03-parameters-graphics.pptx
Python 03-parameters-graphics.pptx
 
JavaFX
JavaFXJavaFX
JavaFX
 
2Bytesprog2 course_2014_c9_graph
2Bytesprog2 course_2014_c9_graph2Bytesprog2 course_2014_c9_graph
2Bytesprog2 course_2014_c9_graph
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
C programming
C programmingC programming
C programming
 
C programming (Part 1)
C programming (Part 1)C programming (Part 1)
C programming (Part 1)
 
Ansi c
Ansi cAnsi c
Ansi c
 

More from kiuntoro

Makalah Komgraf
Makalah KomgrafMakalah Komgraf
Makalah Komgraf
kiuntoro
 
Presentasi makalah
Presentasi makalahPresentasi makalah
Presentasi makalah
kiuntoro
 
Soal2
Soal2Soal2
Soal2
kiuntoro
 
Soal1b
Soal1bSoal1b
Soal1b
kiuntoro
 
Soal1a
Soal1aSoal1a
Soal1a
kiuntoro
 
Satutitikhilang
SatutitikhilangSatutitikhilang
Satutitikhilang
kiuntoro
 
Myline2d
Myline2dMyline2d
Myline2d
kiuntoro
 
Lampu(kreatifitas)
Lampu(kreatifitas)Lampu(kreatifitas)
Lampu(kreatifitas)
kiuntoro
 
Font1
Font1Font1
Font1
kiuntoro
 
Font
FontFont
Font
kiuntoro
 
Program project khusus
Program project khususProgram project khusus
Program project khusus
kiuntoro
 
Myline3
Myline3Myline3
Myline3
kiuntoro
 
Myline1
Myline1Myline1
Myline1
kiuntoro
 
Myline
MylineMyline
Myline
kiuntoro
 
Line2
Line2Line2
Line2
kiuntoro
 
Kotak
KotakKotak
Kotak
kiuntoro
 
Grafikbatang
GrafikbatangGrafikbatang
Grafikbatang
kiuntoro
 
Grafik
GrafikGrafik
Grafik
kiuntoro
 
Garis
GarisGaris
Garis
kiuntoro
 
Bintang2
Bintang2Bintang2
Bintang2
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
 
Bintang2
Bintang2Bintang2
Bintang2
 

Recently uploaded

TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 

Recently uploaded (20)

TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 

Basic graphics

  • 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 : - BasisGraphics Input : import java.awt.Graphics ; import java.awt.Color ; public class basisgrapik extends java.applet.Applet { public void paint ( Graphics g ) { int xpts [] = {5,25,50,30,15,5}; int ypts [] = { 10, 35 ,20 ,65, 40, 10 } ; g.drawString ( " Java Graphics Basic ",0 , 50 ) ; g.drawLine (5,100,150,250) ; g.setColor ( Color.red ) ; g.drawRect ( 50,100,150,250) ; g.drawRoundRect ( 50 , 150 , 150,250 , 6 , 12 ) ;
  • 2. g.drawPolygon ( xpts , ypts , xpts.length ) ; // Cara Lain Buat Polygon //Polygon poly = new Polygon (xpts + 100 , ypts+100 , xpts.length ) ; // g.fillPolygon ( poly); g.drawOval (150,100,250,55 ) ; g.drawArc ( 50,100,150,275,95,115); } } 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 )
  • 3.  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 :