summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex
blob: 08bbc20527387aaef6d9f08ad0663e9388f54e25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
%% $Id: pst-hsb-doc.tex 351 2021-12-16 10:37:40Z herbert $
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
% $Id: pst-hsb-doc.tex 351 2021-12-16 10:37:40Z herbert $
\documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small,
    headinclude=false,footinclude=false,twoside]{pst-doc}
\usepackage{pst-hsb}
\let\psthsbFV\fileversion
\usepackage{xltabular}
\usepackage{pst-plot}
\renewcommand\bgImage{\begin{pspicture}(0,-5)(11,5)
% \psgrid(0,-4)(10,4)
\psaxes{->}(0,0)(0,-4)(11,5)
\psset{plotpoints=300,algebraic}%
\psparametricplotHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5]{0}{6.28}{t/0.628 | sin(t)*4}
\psparametricplotHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7]{0}{6.28}{t/0.628 | cos(t)*4}
\psparametricplotHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1]{0}{6.28}{t/0.628 | sin(t)*2}
\end{pspicture}}

\lstset{language=PSTricks,
    morekeywords={psPrintValue},basicstyle=\footnotesize\ttfamily}
%
%\usepackage{biblatex}
\addbibresource{pst-hsb-doc.bib}
\begin{document}

\title{\texttt{pst-hsb}}
\subtitle{Curves with continoues color; v.\psthsbFV}
\author{Denis Girout\\Manuel Luque\\Herbert Voß}
\docauthor{}
%\date{\today}
\settitle

\begin{abstract}
This package defines the macros \Lcs{pslineHSB}
 \Lcs{parametricplotHSB} for curves with a continous color.


\tableofcontents



\vfill
\noindent
Thanks to:  
%Denis Girou; Manuel Luque
\end{abstract}

\newpage


\section{Examples}

\subsection{Lines}
\begin{LTXexample}
\begin{pspicture}(-0.5,-0.5)(11,5)
% \psgrid(0,-4)(10,4)
\psaxes{->}(0,0)(11,5)
\pslineHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5](0,0)(10,1)
\pslineHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7](0,1)(10,3)
\pslineHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1](0,2)(10,5)
\end{pspicture}
\end{LTXexample}



\clearpage

\subsection{Parametric plot}

\begin{LTXexample}
\begin{pspicture}(0,-5)(11,5)
% \psgrid(0,-4)(10,4)
\psaxes{->}(0,0)(0,-4)(11,5)
\psset{plotpoints=10}%
\psparametricplotHSB[linewidth=1mm,HSB=false,linecolor=red]{0}{360}{t 36 div t sin 4 mul}
\psparametricplotHSB[linewidth=1mm,algebraic]{0}{6.28}{t/0.628 | cos(t)*4}
\end{pspicture}
\end{LTXexample}
 
\begin{LTXexample}
\begin{pspicture}(0,-5)(11,5)
% \psgrid(0,-4)(10,4)
\psaxes{->}(0,0)(0,-4)(11,5)
\psset{plotpoints=300}%
\psparametricplotHSB[linewidth=1mm,HSB=false,linecolor=red]{0}{360}{t 36 div t sin 4 mul}
\psparametricplotHSB[linewidth=1mm,algebraic]{0}{6.28}{t/0.628 | cos(t)*4}
\end{pspicture}
 \end{LTXexample}
 
\begin{LTXexample}
\begin{pspicture}(0,-5)(11,5)
% \psgrid(0,-4)(10,4)
\psaxes{->}(0,0)(0,-4)(11,5)
\psset{plotpoints=300,algebraic}%
\psparametricplotHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5]{0}{6.28}{t/0.628 | sin(t)*4}
\psparametricplotHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7]{0}{6.28}{t/0.628 | cos(t)*4}
\psparametricplotHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1]{0}{6.28}{t/0.628 | sin(t)*2}
\end{pspicture}
\end{LTXexample}
 
\begin{LTXexample}
\begin{pspicture}(-5,-5)(5,5)
 \psframe*[linecolor=lightgray](-5,-4)(5,4)
 \psgrid[gridlabels=0,subgriddiv=0](-5,-4)(5,4)
 \multido{\nxDiv=-5+0.2}{50}{%
 \psline(\nxDiv,-.1)(\nxDiv,0.1)}
 \multido{\nyDiv=-4.0+0.2}{40}{%
 \psline(-0.1,\nyDiv)(0.1,\nyDiv)}
 \psset{linewidth=1mm}%
 \psparametricplotHSB[plotpoints=2000,linecolor=blue,HSB=false,yunit=0.5]{-5}{5}{%
 /temps t 2e-3 mul def
 /frequence2 100 def
 frequence2 360 mul temps mul cos
 1 mul 3 add
 }
 \psparametricplotHSB[plotpoints=2000,yunit=1]{-5}{5}{%
 /temps t 2e-3 mul def
 /frequence1 1200 def
 /frequence2 100 def
 frequence2 360 mul temps mul cos
 1 mul 3 add
 frequence1 360 mul temps mul cos
 4 mul
 mul
 0.1 mul
 }
\end{pspicture}
\end{LTXexample}
 





\clearpage
\section{List of all optional arguments for \texttt{pst-hsb}}

\xkvview{family=pst-hsb,columns={key,type,default}}


\RaggedRight
\nocite{*}
%\bibliographystyle{plain}
\printbibliography

\printindex



\end{document}