o
    h                     @   sT   d dl Zd dlZd dlmZ d dlmZmZ	m
Z ejdedgddd ZdS )	    N)check_figures_equal)collectionspatchespathcairopng)
extensionsc                 C   s
  t jd}t j }t|j|jddd g}t|j|jg}t ||}t |d |}| }|	ddg |
ddg tj|dddd	d
}	||	 tj|dddd	d
}	||	 |  }|	ddg |
ddg tj||gdddd	d}
||
 dS )z
    Test checks that the patch and collection are rendered with the specified
    alpha values in their facecolor and edgecolor.
       N         dashdot)r   r   r   g      ?)r   r   r   g      ?)	linewidth	linestyle	facecolor	edgecolor)r   
linestylesr   r   )mpathPathunit_regular_starunit_circlenpconcatenateverticescodessubplotsset_xlimset_ylimmpatches	PathPatch	add_patchmcollectionsPathCollectionadd_collection)fig_testfig_refstarcirclevertsr   	cut_star1	cut_star2axpatchcol r/   w/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/matplotlib/tests/test_backend_cairo.pytest_patch_alpha_coloring
   s<   



r1   )numpyr   pytestmatplotlib.testing.decoratorsr   
matplotlibr   r"   r   r   r   r   markbackendr1   r/   r/   r/   r0   <module>   s    

