HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/lindenmayer.pyc
�
��Yc@s�dZddlZddlZddlZddlZddlmZd�Zdejfd��YZ	e
dkr�e	�Zej�ndS(s�
Copyright (C) 2005 Aaron Spike, aaron@ekips.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����N(tcomputePointInNodecCs
|j�S(N(tstrip(ts((s-/usr/share/inkscape/extensions/lindenmayer.pytstripmestLSystemcBs5eZd�Zd�Zd�Zd�Zd�ZRS(c
Cs�tjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	ddd �|jjd!d"dddddd#d	ddd$�|jjd%d&dddd'dd(d	d)dd*�|jjd+d,dddd'dd-d	d.dd/�|jjd0d1dddd'dd2�g|_tj�|_dS(3Ns-os--ordertactiontstorettypetinttdesttordertdefaultithelpsnumber of iterations-ls--langletfloattlangleg0@sangle for turning lefts-rs--rangletranglesangle for turning rights-ss--steptstepg9@s	step sizes-ps--randomizestept
randomizestepgsrandomize steps-zs--randomizeangletrandomizeanglesrandomize angles-xs--axiomtstringtaxioms++Fsinitial state of systems-us--rulestrulessF=FF-[-F+F+F]+[+F-F-F]sreplacement ruless-ts--tabttab(	tinkextEffectt__init__tOptionParsert
add_optiontstacktpturtletpTurtletturtle(tself((s-/usr/share/inkscape/extensions/lindenmayer.pyRsL	cCs�tg|jjj�jd�D]3}|jd�dkrtt|jd��^q�|_|j|jj	j�d�}|j
|�|jj�S(Nt;t=ii(
tdicttoptionsRtuppertsplittcounttmapRt_LSystem__recurseRt_LSystem__compose_pathRtgetPath(R tiR((s-/usr/share/inkscape/extensions/lindenmayer.pytiterateAs^
cCs|jj�|jjtt|j�|j��|jj�x�|D]�}|dkr�|jj�|jj|j	j
tjdd|j	j
��qF|dkr�|jj�|jj|j	j
tjdd|j	j
��qF|dkr#|jj|j	jtjdd|j	j��qF|dkrb|jj|j	jtjdd|j	j��qF|dkr�|jjd�qF|d	kr�|jj|jj�|jj�g�qF|d
krF|jj�|jj�\}}|jj|�|jj|�qFqFWdS(NtABCDEFg�?g{�G�z�?tGHIJKLt+t-t|i�t[t](RtputsetposRtlisttview_centert
current_layertpdtfdR$Rtrandomt
normalvariateRtltRRtrtRRtappendtgetpost
getheadingtpopt
setheading(R Rtctpostheading((s-/usr/share/inkscape/extensions/lindenmayer.pyt__compose_pathFs.
%


3
333+
cCs}d}xp|D]h}||jjkrky%||j|j||d�}Wqutk
rg||}quXq
||}q
W|S(Nti(R$R
R)RtKeyError(R truletleveltlevel_stringRE((s-/usr/share/inkscape/extensions/lindenmayer.pyt	__recurse_s
%
cCs�|jt|jj�d�|j_idd6t|jd��d6dd6dd6d	d
6dd6d
d6}itj|�d6|j�d6}tjj	|j
tjdd�|�dS(Ntpxtmitersstroke-linejoint1pxsstroke-widths1.0sstroke-opacitysfill-opacitys#000000tstroketbuttsstroke-linecaptnonetfilltstyletdtpathtsvg(tunittouutstrR$RtsimplestyletformatStyleR-Rtetreet
SubElementR9taddNS(R Rtattribs((s-/usr/share/inkscape/extensions/lindenmayer.pyteffectks% 
#(t__name__t
__module__RR-R*R)Rb(((s-/usr/share/inkscape/extensions/lindenmayer.pyRs
	'			t__main__(
t__doc__RR\RR<tsimpletransformRRRRRctetaffect(((s-/usr/share/inkscape/extensions/lindenmayer.pyt<module>s0	[