Advertisement
Guest User

Untitled

a guest
May 7th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. import java.util.*;
  2. class Armada {
  3. // Use System.out.println for each line of SVG code
  4.         public static void main(String[] args){
  5.                 System.out.println("<?xml version=\"1.0\" standalone=\"no\"?>");
  6.                 System.out.println("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"");
  7.                 System.out.println("\t \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">");
  8.                 System.out.println("<svg width=\"12cm\" height=\"12cm\" viewBox=\"0 0 1200 1200\"");
  9.                 System.out.println("\t xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">");
  10.                 System.out.println("<circle cx=\"5\" cy=\"5\" r=\"4\" stroke=\"green\" stroke-width=\"4\" fill=\"yellow\" />");
  11.                 System.out.println("<circle cx=\"30\" cy=\"30\" r=\"4\" fill=\"yellow\" stroke=\"green\" stroke-width=\"4\" />");
  12.                 System.out.println("<rect x=\"1\" y=\"1\" width=\"50\" height=\"60\"/>");
  13.                 System.out.println("<line x1=\"10\" y1=\"80\" x2=\"30\" y2=\"80\" stroke=\"red\" stroke-width=\"2\"/>");
  14.                 System.out.println("</svg>");
  15.         }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement