summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-hsb/pst-hsb-doc.tex
blob: 62b5c0073f476fa5848044106c6853d711e5edfd (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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
%% $Id: pst-hsb-doc.tex 686 2023-04-02 13:03:12Z herbert $
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
% $Id: pst-hsb-doc.tex 686 2023-04-02 13:03:12Z 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 Girou\\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{Options}
The macros uses the hsb color model for the continuing setting of the
colors. hsb is Hue, Saturation and Brightness. All three can be defined by the
beginning and end value of the sequence. If the values for beginning and end are the
same then the value will be constant for the whole line and/or curve. The options
are preset to

\begin{verbatim}
  HueBegin=0,HueEnd=1,
  SaturationBegin=1, SaturationEnd=1,
  BrightnessBegin=1, BrightnessEnd=1,
\end{verbatim}



\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)\rput[l](10,1){ 1}
\pslineHSB[linewidth=1mm,HueBegin=0,HueEnd=0.5,SaturationBegin=0](0,0.5)(10,2)\rput[l](10,2){ 2}
\pslineHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7](0,1)(10,3)\rput[l](10,3){ 3}
\pslineHSB[linewidth=1mm,HueBegin=0.5,HueEnd=0.7,BrightnessBegin=0](0,1.5)(10,4)\rput[l](10,4){ 4}
\pslineHSB[linewidth=1mm,HueBegin=0.8,HueEnd=1](0,2)(10,5)\rput[l](10,5){ 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}