Files
serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/__pycache__/GimpGradientFile.cpython-310.pyc

31 lines
3.7 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@s<>dZddlmZddlmZmZmZmZddlm Z dZ
e
r*ddl m Z ddl mZd Z ddd<0F>Zddd<11>Zddd<13>Zddd<15>Zddd<17>ZeeeeegZ Gdd<19>d<19>ZGdd<1B>de<16>ZdS)z<>
Stuff to translate curve segments to palette values (derived from
the corresponding code in GIMP, written by Federico Mena Quintero.
See the GIMP distribution for more information.)
<EFBFBD>)<01> annotations)<04>log<6F>pi<70>sin<69>sqrt<72>)<01>o8F)<01>Callable)<01>IOg<4F><67><EFBFBD><EFBFBD><EFBFBD>|<7C>=<3D>middle<6C>float<61>pos<6F>returncCsL||kr|tkr
dSd||S||}d|}|tkrdSdd||S)Ng<00><00>?<3F><00>?)<01>EPSILON<4F>r r <00>r<00>w/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/PIL/GimpGradientFile.py<70>linear%s rcCs|td<01>tt|t<02><02>S)Nr)r<00>maxrrrrr<00>curved4<00>rcCs$tt dtt||<01><00>ddS)Ng@r)rrrrrrr<00>sine8s$rcCstdt||<01>dd<00>S<00>Nr<00><00>rrrrrr<00>sphere_increasing<rrcCsdtdt||<01>d<00>Srrrrrr<00>sphere_decreasing@rrc@s&eZdZUdZded<d d d d
<EFBFBD>ZdS) <0A> GradientFileNzblist[tuple[float, float, float, list[float], list[float], Callable[[float, float], float]]] | None<6E>gradient<6E><00>entries<65>intr<00>tuple[bytes, str]cCs~|jdusJ<00>g}d}|j|\}}}}}} t|<01>D]<5D>}
|
|d} || kr9|d7}|j|\}}}}}} || ks&||} | tkrG| dd<03>} n | ||| | || <00>} ttd|d|d| |dd<00><01>}ttd|d|d| |dd<00><01>}ttd|d|d| |dd<00><01>}ttd|d|d| |dd<00><01>}|<02>||||<00>qd<07>|<02>dfS) Nrrr<00><>r<00><00><00>RGBA)r <00>rangerrr#<00>append<6E>join)<12>selfr"<00>palette<74>ix<69>x0<78>x1<78>xm<78>rgb0<62>rgb1<62>segment<6E>i<>x<>w<>scale<6C>r<>g<>b<>arrr<00>
getpaletteWs(  <08> ,,,,zGradientFile.getpalette)r!)r"r#rr$)<06>__name__<5F>
__module__<EFBFBD> __qualname__r <00>__annotations__r=rrrrrHs

<EFBFBD>rc@seZdZdZd dd<07>ZdS)
<EFBFBD>GimpGradientFilez(File handler for GIMP's gradient format.<2E>fp<66> IO[bytes]r<00>Nonec Cs<>|<01><00><00>d<01>s d}t|<02><01>|<01><00>}|<03>d<03>r|<01><00><00><03>}t|<03>}g|_t|<04>D]P}|<01><00><00><07>}dd<05>|dd<06>D<00>}|d|d}} |d }
|d
d <0B>} |d d<06>} tt|d<00>} t|d <00>}|dkrkd }t |<02><01>|j<05>
|| |
| | | f<06>q'dS)Ns GIMP Gradientznot a GIMP gradient filesName: cSsg|]}t|<01><01>qSr)r )<02>.0r6rrr<00>
<listcomp><3E>sz-GimpGradientFile.__init__.<locals>.<listcomp><3E> rrrr&<00><00> zcannot handle HSV colour space) <0B>readline<6E>
startswith<EFBFBD> SyntaxError<6F>stripr#r r)<00>split<69>SEGMENTS<54>OSErrorr*)r,rC<00>msg<73>line<6E>countr5<00>sr7r/r0r1r2r3r4<00>cspacerrr<00>__init__{s,
      <04>zGimpGradientFile.__init__N)rCrDrrE)r>r?r@<00>__doc__rWrrrrrBxsrBN)r r r r rr )rX<00>
__future__r<00>mathrrrr<00>_binaryr<00> TYPE_CHECKING<4E>collections.abcr <00>typingr
rrrrrrrPrrBrrrr<00><module>s&    




0