just posting from school to copy at home

Go down

just posting from school to copy at home

Post by iGod on Wed Apr 24, 2013 11:47 am

import java.applet.Applet;
import java.awt.ActiveEvent;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

public class Logo extends Applet{
public void paint(Graphics g){
super.paint(g);

Ellipse2D.Double circle = new Ellipse2D.Double(10, 10, 350, 350);
GradientPaint gradient = new GradientPaint(0,0, Color.blue, 175, 175, Color.cyan, true);
Font font = new Font("Goudy Handtooled BT", Font.PLAIN, 88);
Graphics2D g2d = (Graphics2D)g;

g2d.setPaint(gradient);
g2d.fill(circle);
g2d.setPaint(Color.black);
g2d.draw(circle);

g2d.setFont(font);

g2d.setPaint(Color.black);
g2d.drawString("Java 2D", 25, 215);

g2d.setPaint(Color.black);
g2d.setStroke(new BasicStroke(Cool);
g2d.draw(circle);
}

}
avatar
iGod
Owner
Owner

Posts : 64
Reputation : 7
Join date : 2013-02-19

View user profile http://igservers.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum