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