Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package xphnx.pixelgen;
- import java.util.Scanner;
- import javax.swing.JFrame;
- public class Main {
- public static void main(String[] args) {
- System.out.println("PixelAvatarGen");
- System.out.println("XphnX");
- System.out.println("Black and white or 8-bit color?");
- System.out.println("0 = B&W, 1 = 8bit");
- Scanner scan = new Scanner(System.in);
- int banana = scan.nextInt();
- int fruitcake;
- String pancake;
- System.out.println("Print name to make into avatar.");
- fruitcake = scan.nextInt();
- if(banana == 0) {
- pancake = BlackWhite.gen(fruitcake);
- }else{
- pancake = EightColor.gen(fruitcake);
- }
- System.out.println(pancake);
- scan.close();
- JFrame frame = new JFrame("Picture");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- Arranger.setValues(pancake);
- Screen viewer = new Screen(Arranger.pixels, Arranger.proxlol);
- frame.add(viewer);
- frame.setSize(160, 160);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement