아스키아트

ㅇ.ㅇ·2022년 5월 21일
post-thumbnail

자바 아스키아트 만드는방법

package test;

public class moneyBook {
	public static void main(String[] args) throws InterruptedException {
		String art = """
                                                                   .=+*#*:
                                                            .=+*#@%@#+:
                                                       :=*%%%##*#+:
                                                   .=*%#**+++#+:
                                                :+##*+++==*+:
                                            .+**++++++==+=
                                         :=**++++++===++
                                       +#+++++++=====*.
                                     +#+++++++=====++
                                   :#+++++++======+=
                                 :++++++++=======+=                                             .====++*++===:.
                               .*+++++++++=======#                                     .:=++*%%%#############%%%@@%*:
                               %:++++++++++======*=.                             :==+*#*++++++++++++++++***====:.
                               #:++++++++++++++++**+                        .=+**+++++++++++++++====**=:
                              :*=++++++++====++=:                       =+**+==+++++++++=========*=:
                              =+=+++++======*                        =**====++++++++=========:++:
                              +=+++++=====+=                        @===+++++++++==========:++.
                              #=+++++=====*.                      .%:=++++++++++==========:#.
                              #=++++++++=++##                    =#:++++++++++++=========:#
                              #+++++++++#+:              =+*####%*=++++++++++++++++=======+
                             .#++++++++#.            :+##****+*#==++++++++++++======+****+%
                             .*++++++*#           :+#******+*#+=+++++++++======+++==:.
                             +*+++++*+         .+#******++*#*=+++++++++======#++:
                             #+*++++*   ..:==+#*******++*#+==+++++++++=====*#+#@*
                            .#****+*#####**********+++#*+=+++++++++++++===#++++*#
                            %+*+++##************+++***=++++++++++++++++++=*++++**#
                           =***+*#******+++++++++**+++++++++++++++++++=++++%*++**:=
                          .#+*+*****+++++++++****+++++++++=+==********#****++++*+.#
                         *%+******++++++*+***=++++++=====+*#**++++++++++++++++*=  #
                        @+****+++++++++***+=*##**++*###***=++++++++++++++++++*.   #:
                       #+***+++++++++++++=+++++*#**+++===++++++++**++*+++++=.    .*.
                      :##**++++++++++++++++++++====+++++++++*=:.   ..             #
                      %:#+++++++++++++++=++++++++++++++++++:                      #
                     =@%#+++++++++++++++##**#+=+++++++++++                        *=
                    *##=*+++++++++++++*%.  :=**=++++++++*                :      .. =+
                   #*++*+=+++++++++++*%:@%=@@:@=++++++++:               =+*:  ..    #=
                   =:+=====++++++++++##:=*@+ **=+++++++.            .... #*+=+==**+@*@+
                   #  =+++++++++++++*+*#**+*#+++++++=.           ..... =+=      #%@%%+:
                   .*    .....:::::::::::====++==:.             ....===
                     *=  =::=:                                 .::*=
                       *+                                     :*++
                        %#%*:::                               =.*
                        @*#%* .==*#======::.                   =.
                        +#**+=::.         .:::=:=++=         ..+
                                                    == ..    . +
                                                     .+. .  . .+
                                                       ==    =@:
                                                        =#%+@%#@.
                                                       .*###%@##
                                                        .=:+*:
				
				""";
	for (int i = 0; i < art.length(); i++) {
		System.out.print(art.charAt(i));
		Thread.sleep(2);
	}
		
		
	}
}

tip

이미지 가져와서 코드변환하기

프로그램으로 하실때 글꼴은 MS P Gothic 으로 하시는게 좋습니다.

참고자료

https://helloitstory.tistory.com/110

https://www.youtube.com/watch?v=EDDJZ4dWM5c&ab_channel=katBrains

https://manytools.org/hacker-tools/ascii-banner/

profile
기록과 정리하는것을 계속해서 하려고 노력중이에요 😊

0개의 댓글