Created
March 15, 2016 04:02
-
-
Save k16shikano/bd85e243050159227b78 to your computer and use it in GitHub Desktop.
zundoko.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[dvipdfmx]{jsarticle} | |
\usepackage{xcolor} | |
\usepackage[noalphabet]{pxchfon} | |
\setminchofont{Oradano.ttf} | |
\usepackage[first=1, last=3]{lcg} | |
\makeatletter | |
\newcount\LastFive | |
\LastFive=33333 | |
\newif\ifZZZZD | |
\ZZZZDtrue | |
\def\rightfive{% | |
\@tempcnta=\LastFive% | |
\divide\@tempcnta by 100000% | |
\multiply\@tempcnta by 100000% | |
\advance\LastFive by -\@tempcnta} | |
\def\updateLastFive#1{% | |
\multiply\LastFive by 10% | |
\advance\LastFive by #1% | |
\rightfive} | |
\def\ZunOrDoko#1{% | |
\ifcase#1 \relax | |
\or {\color[rgb]{1.0,0.87,0.0}ズン} | |
\or {\color[rgb]{0.9,0.68,0.6}ドコ} | |
\or {\color[rgb]{0.3,0.81,0.8}ドコ} | |
\fi} | |
\def\zundoko{% | |
\@whilesw\ifZZZZD\fi{% | |
\rand% | |
\updateLastFive{\c@rand}% | |
\ZunOrDoko{\c@rand} | |
\ifnum\LastFive=11113\relax\ZZZZDfalse | |
\else\ifnum\LastFive=11112\relax\ZZZZDfalse\fi | |
\fi}} | |
\makeatother | |
\begin{document} | |
\pagecolor{black} | |
\Huge | |
\zundoko\ {\color[rgb]{0.84,0.23,0.24}キ ヨ シ !} | |
\end{document} |
Author
k16shikano
commented
Mar 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment