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__/fractalize.cpython-310.pyc
o

0�a�
�@s\ddlZddlZddlZddlmZmZdd�ZGdd�dej�Ze	dkr,e��
�dSdS)�N)�Move�LinecCs�||}||}||d}||d}t�||||�}	|	dkr-||	}
||	}nd}
d}t�|	d||	d|�}|
|}
||}||
}
||}|
|fS)N�r�)�math�sqrt�random�uniform)�
smoothness�x1�y1�x2�y2�x3�y3�hx�hy�length�nx�ny�r�x�y�r�,/usr/share/inkscape/extensions/fractalize.py�calculate_subdivisions 

rc@s$eZdZdd�Zdd�Zdd�ZdS)�
FractalizecCs,|jddtddd�|jddtdd	d�dS)
Nz-sz	--subdivs�6zNumber of subdivisons)�type�default�helpz-fz--smoothz4.0zSmoothness of the subdivision)�add_argument�int�float)�self�parsrrr�
add_arguments3s�
�zFractalize.add_argumentscCs�|jj�tj�D]N}|j��}g}|��D]=}|j}|j	}|j
dkr+|�t|j
��q|�|j|j|j|jf|jj|jj�D]	}|�t|��q>|�t|j|j��q||_qdS)N�M)�svg�	selection�filter�inkex�PathElement�path�to_absolute�proxy_iterator�previous_end_point�	end_point�letter�appendr�args�
fractalizerr�options�subdivs�smoothr)r$�noder-�result�	cmd_proxy�prev�end�segrrr�effect9s

��zFractalize.effectccs��t|g|�R�}|r@|�|dd�|dd�|d|�D]}|Vq|V|�|dd�|dd�|d|�D]}|Vq:dSdS)zDrecursively subdivide the segments left and right of the subdivisionNr���r)rr5)r$�coordsr7r8�subdiv_point�left_seg�	right_segrrrr5Js�**�zFractalize.fractalizeN)�__name__�
__module__�__qualname__r&r?r5rrrrr2sr�__main__)rrr+�inkex.pathsrrr�EffectExtensionrrE�runrrrr�<module>s'�

Youez - 2016 - github.com/yon3zu
LinuXploit