403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/jitternodes.cpython-310.pyc
o

0�a��@sDddlZddlZddlZGdd�dej�Zedkr e���dSdS)�Nc@sXeZdZdZdd�Zdd�Zdd�Zedd	��Zed
d��Z	edd
��Z
edd��ZdS)�JitterNodeszJiggle nodes aroundcCst|�d�|jdtddd�|jdtddd�|jdtjd	d
d�|jdtjd	dd�|jd
|�d�|jdd�dS)Nz--tabz	--radiusxg$@zRandum radius X)�type�default�helpz	--radiusyzRandum radius Yz--ctrlTzRandomize ctrl pointsz--endzRandomize nodesz--dist�distzDistribution of displacement)�add_argument�float�inkex�Boolean�
arg_method�dist_uniform)�self�pars�r�-/usr/share/inkscape/extensions/jitternodes.py�
add_argumentss

�zJitterNodes.add_argumentscCsL|jj�tj�D]�}|j��}|D]�}|d|dk}t|�D]\}}|r5|t|�dkr5|d||<nj|j	j
r�|�ddg�}|dd|d7<|dd|d7<|dd|d7<|dd|d7<|dd|d7<|dd|d7<|j	jr�|�|d�|d<|�|d�|d<qq||_qdS)Nr�����)
�svg�	selection�filterr	�PathElement�path�to_superpath�	enumerate�len�options�end�	randomize�ctrl)r
�noder�subpath�closed�index�csp�deltarrr�effect&s,
��zJitterNodes.effectcCs6|j�|jj|jj�}|d|d|d|dgS)z9Randomise the given position [x, y] as set in the optionsrr)rr�radiusx�radiusy)r
�posr&rrrr<s zJitterNodes.randomizecCst�d|�t�d|�fS)zGaussian distribution�)�random�gauss��x�yrrr�
dist_gaussianAszJitterNodes.dist_gaussiancCsLt�dd�}|t�tt�d�d�d|�|t�tt�d�d�d|�fS)zPareto distribution����?g4@)r,�uniform�math�copysign�min�
paretovariate�r/r0�signrrr�dist_paretoFs�zJitterNodes.dist_paretocCsDt�dd�}|t�t�dd�d|�|t�t�dd�d|�fS)zLog Norm distributionr2r3r+g@)r,r4r5r6�lognormvariater9rrr�dist_lognormRs�zJitterNodes.dist_lognormcCst�||�t�||�fS)zUniform distribution)r,r4r.rrrrYszJitterNodes.dist_uniformN)�__name__�
__module__�__qualname__�__doc__rr'r�staticmethodr1r;r=rrrrrrs	


r�__main__)r5r,r	�EffectExtensionrr>�runrrrr�<module>sC�

Youez - 2016 - github.com/yon3zu
LinuXploit