Membuat Logo Android 2


hai teman-teman, apa kabarnya kamu-kamu hari ini? mudah-mudahan tetap sehat dan selalu bahagia ya,,,,
oke deh, kali ini man akan melamodifikasi tulisan man yang pertama, yang judulnya (Boleh dilihat nih) Membuat Logo Android Menggunakan JPanel/JFrame

Ini codingnya ya……

package Grafkom;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class tugasGrafika extends JPanel{
public tugasGrafika(){

}
public void paintComponent (Graphics Man)
{
super.paintComponent(Man);
//membuat garis putih oval
Graphics2D g2d = ( Graphics2D ) Man;
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(0, 0, 690,700);
g2d.setStroke(new BasicStroke(40.0f));
g2d.setPaint(Color.WHITE);
g2d.draw( new Line2D.Double( 415, 30, 300, 130 ) );
g2d.draw( new Line2D.Double( 250, 30, 300, 130 ) );
Man.setColor(Color.WHITE);
Man.fillOval(130, 145, 90, 90);
Man.fillOval(440, 145, 90, 90);
Man.fillOval(130, 225, 90, 90);
Man.fillOval(440, 225, 90, 90);
Man.fillOval(240, 365, 90, 90);
Man.fillOval(330, 365, 90, 90);
Man.fillOval(200, 30, 260, 240);
Man.fillOval(200, 315, 60, 50);
Man.fillOval(400, 320, 60, 50);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(200, 0, 300, 20);
Man.fillRect(200, 20, 50, 20);
Man.fillRect(400, 20, 50, 20);
Man.setColor(Color.WHITE);
Man.fillOval(230, 10, 40, 40);
Man.fillOval(395, 10, 40, 40);
g2d.setStroke( new BasicStroke( 10.0f ) );
g2d.setPaint( new GradientPaint(5, 30, Color.GREEN, 35,100, Color.BLACK, true));
g2d.draw( new Line2D.Double( 415, 30, 300, 130 ) );
g2d.draw( new Line2D.Double( 250, 30, 300, 130 ) );

g2d.setPaint( new GradientPaint(5, 30, Color.GREEN, 35,100, Color.BLACK, true));
Man.fillOval(220, 50, 220, 200); //kepala
Man.fillRect(220, 135, 220, 200); //badan
Man.fillRect(235, 335, 190, 15); //badan bawah
Man.fillOval(220, 320, 30, 30); // samping bawah1
Man.fillOval(410, 320, 30, 30); // samping bawah2
Man.fillRect(260, 340, 50, 70); // kaki1
Man.fillRect(350, 340, 50, 70); //kaki2
Man.fillOval(260, 390, 50, 50);// telapak1
Man.fillOval(350, 390, 50, 50);// telapak2
Man.fillRect(150, 190, 50, 80); // tangan1
Man.fillRect(460, 190, 50, 80); //tangan2
Man.fillOval(150, 165, 50, 50); //pundak1
Man.fillOval(460, 165, 50, 50); //pundak2
Man.fillOval(150, 240, 50, 50); //telapak tangan1
Man.fillOval(460, 240, 50, 50); //telapak tangan2
Man.fillOval(242, 20, 10, 10); //sensor1
Man.fillOval(415, 20, 10, 10); //sensor2
Man.setColor(Color.WHITE);
Man.fillRect(220, 140, 220, 20); //leher
Man.fillOval(270, 90, 25, 25); //mata1
Man.fillOval(365, 90, 25, 25); //mata2
//membuat garis putih Rect
Man.fillRect(200, 140, 20, 200);
Man.fillRect(440, 140, 20, 200);
Man.fillRect(130, 190, 20, 80);
Man.fillRect(510, 190, 20, 80);
Man.fillRect(240, 350, 20, 60);
Man.fillRect(310, 350, 20, 60);
Man.fillRect(330, 350, 20, 60);
Man.fillRect(400, 350, 20, 60);
//membuat huruf a
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillOval(10, 500, 100, 100);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(60, 500, 100, 100);
Man.fillOval(25, 515, 70, 70);
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillRect(60, 500, 40, 15);
Man.fillRect(60, 585, 10, 15);
Man.fillRect(85, 500, 15, 100);
//membuat huruf n
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillRect(110, 550, 100, 50);
Man.fillOval(110, 500, 100, 100);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(125, 550, 70, 50);
Man.fillOval(125, 515, 70, 70);
//membuat huruf d ke 1
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillOval(220, 500, 100, 100);
Man.fillRect(220, 500, 50, 100);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(220, 515, 50, 70);
Man.fillOval(235, 515, 70, 70);
//membuat huruf r
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillRect(330, 500, 70, 100);
Man.fillOval(375, 500, 50,65);
Man.fillOval(375, 550, 50,65);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(330, 515, 70, 35);
Man.fillRect(330, 565, 70, 35);
Man.fillOval(380, 515, 32, 35);
Man.fillRect(380, 580, 100, 100);
Man.fillOval(380, 565, 30, 35);
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillRect(410, 580, 15, 20);
//membuat huruf o
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillOval(430, 500, 100, 100);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillOval(445, 515, 70, 70);
//membuat huruf i
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillRect(540, 500, 15, 100);
//membuat huruf d ke 2
g2d.setPaint( new GradientPaint(5, 30, Color.RED, 35,100, Color.BLACK, true));
Man.fillOval(565, 500, 100, 100);
Man.fillRect(565, 500, 50, 100);
g2d.setPaint( new GradientPaint(50, 30, Color.BLUE, 35,100, Color.BLACK, true));
Man.fillRect(565, 515, 50, 70);
Man.fillOval(580, 515, 70, 70);
}
public static void main(String[] args) {
tugasGrafika GarafkomB = new tugasGrafika();
JFrame Man = new JFrame();
Man.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Man.add(GarafkomB);
Man.setTitle(“Logo Android”);
Man.setSize(690,700);
Man.setLocation(350,20);
Man.setVisible(true);
}
}

Ini hasil modifannya…

Beli T-Shirt, Raglan dan Kids T-Shirt Original Ocean Seven

  1. T-Shirt, Raglan dan Kids T-Shirt Anime, Manga, Gamers dan Cartoon World (OceanSeven)
  2. T-Shirt, Raglan dan Kids T-Shirt Footbal Series (OceanSeven)
  3. T-Shirt, Raglan dan Kids T-Shirt Music Series (OceanSeven)
  4. T-Shirt, Raglan dan Kids T-Shirt OceanSeven – Custom dan Basic Tees (OceanSeven)
  5. T-Shirt, Raglan dan Kids T-Shirt OceanSeven -Kids Collections (OceanSeven)
  6. T-Shirt, Raglan dan Kids T-Shirt OceanSeven -Signature Serues (OceanSeven)
  7. T-Shirt, Raglan dan Kids T-Shirt  Social Media dan Photography (OceanSeven)
  8. T-Shirt, Raglan dan Kids T-Shirt Sport, Automotive dan Adventure (OceanSeven)
  9. T-Shirt, Raglan dan Kids T-Shirt Superheroes dan Movies (OceanSeven)

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s