%% syntaxe : tmin tmax C@urbeR2_
/C@urbeR2_ {
6 dict begin
/tmax@ exch def
/tmin@ exch def
/t tmin@ def
/dt tmax@ tmin@ sub resolution 1 sub div def
tmin@ courbe_dic /X get exec
% pstrickactionR2
smoveto
/t t dt add store
resolution 2 sub
{
t courbe_dic /X get exec
% pstrickactionR2
slineto
/t t dt add store %% on incremente
}
repeat
tmax@ courbe_dic /X get exec
% pstrickactionR2
slineto
end
} def
%% syntaxe : tmin tmax {X} CourbeR2_
/CourbeR2_ {
courbe_dic exch /X exch put
C@urbeR2_
} def
%% syntaxe : {X} courbeR2_
/courbeR2_ {
tmin tmax
3 -1 roll
3 -1 roll
CourbeR2_
} def
%% syntaxe : tmin tmax {X} CourbeR2
/CourbeR2+ {
2 dict begin
/slineto {} def
/smoveto {} def
CourbeR2
end
} bind def
/CourbeR2 {
gsave
6 dict begin
dup isstring
{
/option exch def
}
if
courbe_dic exch /X exch put
/tmax exch def
/tmin exch def
newpath
tmin tmax C@urbeR2_
starfill
currentlinewidth 0 eq {} {stroke} ifelse
end
grestore
} def
%% syntaxe : {X} courbeR2
/courbeR2 {
tmin tmax
3 -1 roll
CourbeR2
} def
%% syntaxe : tmin tmax {X} CourbeR2*
/CourbeR2* {
1 dict begin
/startest {true} def
CourbeR2
end
} def
%% syntaxe : {X} {Y} courbeR2*
/courbeR2* {
1 dict begin
/startest {true} def
courbeR2
end
} def
|