AlkantarClanX12
Current Path : /proc/thread-self/root/lib64/python2.7/Demo/turtle/ |
Current File : //proc/thread-self/root/lib64/python2.7/Demo/turtle/tdemo_penrose.pyc |
� Afc @ s d Z d d l Td d l m Z m Z d d l m Z m Z d d Z d e d e d � Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d d e d d d � Z e d � Z d � Z e d k r� e � Z e � n d S( s� 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 ------------------------------------------- i����( t *( t cost pi( t clockt sleepi g �?i g @i i i c C sh t | } t d � t | � t d � t | � t d � t | � t d � t | � t d � d S( Ni$ il i� ( t ft ltt fdt rt( t lt fl( ( s1 /usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyt kite s c C sh t | } t d � t | � t d � t | � t d � t | � t d � t | � t d � d S( Ni$ i� ( R R R R ( R R ( ( s1 /usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyt dart% s c C s | d k ra t � \ } } t t � � t | d � t | d � } } } t t | | | f <d St | } t d � t | | d � t | � t d � t | | d � t d � t | t � t d � t | | d � t d � t | � t d � t | | d � t d � d S( Ni i i$ i i� i i� i� ( t post intt headingt roundt Truet tiledictR R t inflatedartR R t inflatekitet d( R t nt pxt pyt ht xt yR ( ( s1 /usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyR 1 s( / c C s� | d k ra t � \ } } t t � � t | d � t | d � } } } t t | | | f <d St | } t | | d � t d � t | � t d � t | | d � t d � t | t � t d � t | | d � t | � t d � d S( Ni i i i$ i� i6 i~ i� ( R R R R t FalseR R R R R R R R ( R R R R R R R R ( ( s1 /usr/lib64/python2.7/Demo/turtle/tdemo_penrose.pyR G s"