|
Packit |
0986c0 |
set border linecolor rgb "gold"
|
|
Packit |
0986c0 |
set key title "Plot style rgbalpha" textcolor rgb "gold"
|
|
Packit |
0986c0 |
set key bottom left at screen .75, screen .75
|
|
Packit |
0986c0 |
set key Left width -7 sample 1
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
set object 1 rect from screen 0, 0 to screen 1, 1 behind \
|
|
Packit |
0986c0 |
fc rgb "gray10" fillstyle solid 1.00 noborder
|
|
Packit |
0986c0 |
set samples 128, 128
|
|
Packit |
0986c0 |
set size ratio 0.95
|
|
Packit |
0986c0 |
set bmargin at screen .1
|
|
Packit |
0986c0 |
set tmargin at screen .9
|
|
Packit |
0986c0 |
set lmargin at screen .1
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
set xrange [ 0. : 128. ]
|
|
Packit |
0986c0 |
set yrange [ 0. : 128. ]
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
# Alpha = linear gradient on x
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
plot 100.*(.4+sin(x/5.)/(x/5.)) lw 5 title 'solid line', \
|
|
Packit Service |
d0d357 |
'lena.rgb' binary array=(128,128) format="%uchar" flipy using 1:2:3:(2.*column(0)) \
|
|
Packit Service |
d0d357 |
with rgbalpha title "Lena with linear\nalpha gradient"
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
pause -1 "Hit return to continue"
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
# Alpha = circular mask
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
focus(x,y) = ((column(0)-x)**2 + (column(-1)-(127-y))**2) > 400 ? 0 : 255
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
plot 100.*(.4+sin(x/5.)/(x/5.)) lw 5 title 'solid line', \
|
|
Packit Service |
d0d357 |
'lena.rgb' binary array=(128,128) format="%uchar" flipy using 1:2:3:(focus(70,50)) \
|
|
Packit Service |
d0d357 |
with rgbalpha title "Lena with circular mask"
|
|
Packit |
0986c0 |
|
|
Packit |
0986c0 |
pause -1 "Hit return to continue"
|
|
Packit |
0986c0 |
reset
|