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/spirograph.pyo
�
��Yc@sydZddlZddlZddlZddlmZdejfd��YZedkrue�Z	e	j
�ndS(s�
Copyright (C) 2007 Joel Holdsworth joel@airwebreathe.org.uk

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(tcomputePointInNodet
SpirographcBseZd�Zd�ZRS(c
Cs:tjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	d dd!�|jjd"d#dddd$dd%d	d&dd'�dS((Ns-Rs
--primaryrtactiontstorettypetfloattdesttprimaryrtdefaultgN@thelpsThe radius of the outer gears-rs--secondaryrt
secondaryrgY@sThe radius of the inner gears-ds--penrtpenrgI@s+The distance of the pen from the inner gears-ps--gearplacementtstringt
gearplacementtinsides6Selects whether the gear is inside or outside the rings-as
--rotationtrotationgs,The number of degrees to rotate the image bys-qs	--qualitytinttqualityis$The quality of the calculated output(tinkextEffectt__init__tOptionParsert
add_option(tself((s,/usr/share/inkscape/extensions/spirograph.pyRs2cCsE|jt|jj�d�|j_|jt|jj�d�|j_|jt|jj�d�|j_|jjdkr�dS|jjdkr�dS|jjjd�j	�j
d�r�|jj|jj}d}n|jj|jj}d}||jj}|dkrdSdtj||jj}tj|jj
d}tjjtjd	d
��}idd6d
d6t|jd��d6}|jdtj|��d}d}	xdt|	�D]V}
|
|}tt|j�|j�}|tj||�|jjtj|||�||d}
|tj||�|jjtj|||�|d}|tj||�||jjtj|||�||d}|tj||�||jjtj|||�|d}|
dkrT|dt|
�dt|�dt|
|�dt||�d7}q�|t|
|�dt||�dt|
�dt|�7}tj|
||jj�dkr�|
|jjdkr�|d7}Pq�|
|	dkr�q�|dt|
|�dt||�d7}q�W|jd|�|jj|�dS(Ntpxit toutsidei����iii�tpathtsvgs#000000tstroketnonetfillt1pxsstroke-widthtstyleti�isM t,s C tZtd(tunittouutstrtoptionsRR
RRR
tstriptlowert
startswithtmathtpiRRtetreetElementtaddNStsettsimplestyletformatStyletrangeRtlisttview_centert
current_layertcostsintfmodtappend(RtatfliptratiotscaleRtnewtst
pathStringt
maxPointCounttitthetaR6txtytdxtdy((s,/usr/share/inkscape/extensions/spirograph.pyteffect2sT%%%$	*
73GBMB8
2(t__name__t
__module__RRJ(((s,/usr/share/inkscape/extensions/spirograph.pyRs	t__main__(t__doc__RR2R,tsimpletransformRRRRKtetaffect(((s,/usr/share/inkscape/extensions/spirograph.pyt<module>s$^