add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
3

�
�^S
c@s�dZddlTddlmZmZddlmZmZd*Zd	ed
ed�Z	dd
�Z
dd�Zdd�Zdd�Z
d+dd�Zdd�Zdd�Zdd�Zdd�Zdded,d	fd d!�Zefd"d#�Zd$d%�Zed&kr�e�Ze�d'S)-a�       xturtle-example-suite:

          xtx_kites_and_darts.py

Constructs two aperiodic penrose-tilings,
consisting of kites and darts, by the method
of inflation in six steps.

Starting points are the patterns "sun"
consisting of five kites and "star"
consisting of five darts.

For more information see:
 http://en.wikipedia.org/wiki/Penrose_tiling
 -------------------------------------------
�)Z*)�cos�pi)�clock�sleep�g�?�g@��i
cCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)N�$il���f�lt�fd�rt��l�fl�r�*/usr/lib64/python3.6/turtledemo/penrose.py�kite�rcCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)Nr	r
rrrrr�dart%rrcCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}td�t||d�t|�t	d�t
||d�td�t|t�t	d�t
||d�td�t|�t	d	�t||d�td�dS)
NrrTr	rr
ii��)�pos�int�heading�round�tiledictrr
�inflatedartrr�inflatekite�d�r�nZpxZpy�h�x�yrrrrr1s(
"rcCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}t||d�td�t|�t	d�t
||d�td�t|t�t	d�t
||d�t|�t	d	�dS)
NrrFrr	ri6i~r
)rrrrrrrr
rrrr r!rrrrGs"
"rcCs�t�|t|}t|d|d|�x\tD]T}|\}}}t||�t|�t|rhtd�tdd�ntd�tdd�t�q,WdS)	NgY@r�blackr��?r)rr'r)r'rr)	ZclearrZ	shapesizerZsetpos�
setheadingZshapeZcolorZstamp)rr"�thZkr#r$r%rrr�drawZs



r*cC�(x"td�D]}t||�td�q
WdS�NriH)�rangerr
�rr"�irrr�sunj�
r0cCr+r,)r-rr
r.rrr�staror1r2cCsTtd�t�td�t�tdt��t�td�t�tdt��td�dS)Nridrrr)�tracerZ
begin_polyrZend_polyZregister_shapeZget_polyrrrrr�
makeshapestsr4cCs$t�t�t�t�td�dS)NZuser)ZresetZhtZpur4Z
resizemoderrrr�start�s
r5��ic
Cs�t|�td�iat�}td�|||�t�}t|||�td�t�}tdd�tD��}tdd�tD��}	td||	||	f�dS)NrrcSsg|]}t|r|�qSr�r�Z.0r$rrr�
<listcomp>��ztest.<locals>.<listcomp>cSsg|]}t|s|�qSrr7r8rrrr9�r:z"%d kites and %d darts = %d pieces.)�gotor(rrr3r*ZlenZprint)
rr"�fun�startposr)�a�bZcZnkZndrrr�test�s
r@cCsPt�xDtd�D]8}t�}td||�t�}||}|dkrtd|�qWdS)N�i,r)r5r-rr@r)r<r/r>r?Ztrrr�demo�srBcCsjtd�tddd�tt�td�tt�td�tdd�tddd�td	d
dd�t	dddd�dS)NZlogog333333�?rrr&r6gffffff�?rzPlease wait...Zcenter�Arial Blackr	�bold)ZalignZfontiXrA�F�u)r=ZDonei8���)rCr	rD)rErF)
ZmodeZbgcolorrBr0rr2Zpencolorr;Zwriter@rrrr�main�s

rGZ__main__Ng����w�@gP�/7���?gP�/7���?)r)rr)Z__doc__ZturtleZmathrrZtimerrrr rrrrr*r0r2r4r5r@rBrGZ__name__ZmsgZmainlooprrrrZ<module>s(