\doxysection{pygaze.\+\_\+misc.\+misc Namespace Reference}
\hypertarget{namespacepygaze_1_1__misc_1_1misc}{}\label{namespacepygaze_1_1__misc_1_1misc}\index{pygaze.\_misc.misc@{pygaze.\_misc.misc}}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{namespacepygaze_1_1__misc_1_1misc_a5661a4b7295fbaba3b4a9da8f3f3ef61}{copy\+\_\+docstr}} (src, target)
\item 
\mbox{\hyperlink{namespacepygaze_1_1__misc_1_1misc_a1d4980536574835553a174215eff5b47}{pos2psychopos}} (pos, dispsize=None)
\item 
\mbox{\hyperlink{namespacepygaze_1_1__misc_1_1misc_a92be9d5c6b23af82506e825ae96deeeb}{psychopos2pos}} (pos, dispsize=None)
\item 
\mbox{\hyperlink{namespacepygaze_1_1__misc_1_1misc_ab2d84c580704666c9f0aecbff022fce5}{rgb2psychorgb}} (rgbgun)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\Hypertarget{namespacepygaze_1_1__misc_1_1misc_a5661a4b7295fbaba3b4a9da8f3f3ef61}\index{pygaze.\_misc.misc@{pygaze.\_misc.misc}!copy\_docstr@{copy\_docstr}}
\index{copy\_docstr@{copy\_docstr}!pygaze.\_misc.misc@{pygaze.\_misc.misc}}
\doxysubsubsection{\texorpdfstring{copy\_docstr()}{copy\_docstr()}}
{\footnotesize\ttfamily \label{namespacepygaze_1_1__misc_1_1misc_a5661a4b7295fbaba3b4a9da8f3f3ef61} 
pygaze.\+\_\+misc.\+misc.\+copy\+\_\+docstr (\begin{DoxyParamCaption}\item[{}]{src}{, }\item[{}]{target}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}    Copies docstrings from the methods of a source class to the methods of a
    target class.
    
    arguments:
    src     --  source class (e.g. BaseDisplay)
    target  --  target class (e.g. PyGameDisplay)
\end{DoxyVerb}
 \Hypertarget{namespacepygaze_1_1__misc_1_1misc_a1d4980536574835553a174215eff5b47}\index{pygaze.\_misc.misc@{pygaze.\_misc.misc}!pos2psychopos@{pos2psychopos}}
\index{pos2psychopos@{pos2psychopos}!pygaze.\_misc.misc@{pygaze.\_misc.misc}}
\doxysubsubsection{\texorpdfstring{pos2psychopos()}{pos2psychopos()}}
{\footnotesize\ttfamily \label{namespacepygaze_1_1__misc_1_1misc_a1d4980536574835553a174215eff5b47} 
pygaze.\+\_\+misc.\+misc.\+pos2psychopos (\begin{DoxyParamCaption}\item[{}]{pos}{, }\item[{}]{dispsize}{ = {\ttfamily None}}\end{DoxyParamCaption})}

\begin{DoxyVerb}Returns a converted position tuple (x,y) (internal use)
    
    arguments
    pos     -- a (x,y) position tuple, assuming (0,0) is top left
    
    keyword arguments
    dispsize    -- a (width, height) tuple for the display resolution or None
               for autodetecting the size of current active window
               (default = None)
    
    returns
    pos     -- a (x,y) tuple that makes sense to PsychoPy (i.e. (0,0) is
               display center; bottom left is (-,-) and top right is
               (+,+))
\end{DoxyVerb}
 \Hypertarget{namespacepygaze_1_1__misc_1_1misc_a92be9d5c6b23af82506e825ae96deeeb}\index{pygaze.\_misc.misc@{pygaze.\_misc.misc}!psychopos2pos@{psychopos2pos}}
\index{psychopos2pos@{psychopos2pos}!pygaze.\_misc.misc@{pygaze.\_misc.misc}}
\doxysubsubsection{\texorpdfstring{psychopos2pos()}{psychopos2pos()}}
{\footnotesize\ttfamily \label{namespacepygaze_1_1__misc_1_1misc_a92be9d5c6b23af82506e825ae96deeeb} 
pygaze.\+\_\+misc.\+misc.\+psychopos2pos (\begin{DoxyParamCaption}\item[{}]{pos}{, }\item[{}]{dispsize}{ = {\ttfamily None}}\end{DoxyParamCaption})}

\begin{DoxyVerb}Returns a converted position tuple (x,y) (internal use)
    
    arguments
    pos     -- a (x,y) tuple that makes sense to PsychoPy (i.e. (0,0) is
               display center; bottom left is (-,-) and top right is
               (+,+))
    
    keyword arguments
    dispsize    -- a (width, height) tuple for the display resolution or None
               for autodetecting the size of current active window
               (default = None)
    
    returns
    pos     -- a (x,y) position tuple, assuming (0,0) is top left
\end{DoxyVerb}
 \Hypertarget{namespacepygaze_1_1__misc_1_1misc_ab2d84c580704666c9f0aecbff022fce5}\index{pygaze.\_misc.misc@{pygaze.\_misc.misc}!rgb2psychorgb@{rgb2psychorgb}}
\index{rgb2psychorgb@{rgb2psychorgb}!pygaze.\_misc.misc@{pygaze.\_misc.misc}}
\doxysubsubsection{\texorpdfstring{rgb2psychorgb()}{rgb2psychorgb()}}
{\footnotesize\ttfamily \label{namespacepygaze_1_1__misc_1_1misc_ab2d84c580704666c9f0aecbff022fce5} 
pygaze.\+\_\+misc.\+misc.\+rgb2psychorgb (\begin{DoxyParamCaption}\item[{}]{rgbgun}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}Returns a converted RGB gun
    
    arguments
    rgbgun  -- a (R,G,B) or (R,G,B,A) tuple containing values between 0
               and 255; other values (e.g. 'red' or hex values) may be
               passed as well, but will be returned as they were
    returns
    psyrgb  -- a (R,G,B) tuple containing values between -1 and 1; or
               rgbgun when passed rgbgun was not a tuple or a list
\end{DoxyVerb}
 