Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

QR.sh 486 B

You have to be logged in to leave a comment. Sign In
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
  1. #!/usr/bin/env bash
  2. # Test opaque and transparent QR codes in psxy
  3. ps=QR.ps
  4. cat << EOF > t.txt
  5. > -Gred -Wfaint
  6. 1 1
  7. > -Gpink -W2p
  8. 2 1
  9. > -Gyellow -W-
  10. 3 1
  11. > -Gblue -W1p,red
  12. 1 2
  13. > -Ggreen -W1p,green
  14. 2 2
  15. > -Gcyan -W-
  16. 3 2
  17. > -Ggray
  18. 1 3
  19. > -Gblack -W1p,white
  20. 2 3
  21. > -Gbrown -Wfaint
  22. 3 3
  23. EOF
  24. gmt psxy -R0/4/0/4 -JX4i -P -B0 -B+glightgray+t"QR (opaque)" t.txt -Gred -SkQR/0.75i -Xc -K > $ps
  25. gmt psxy -R -J -O -B0 -B+glightgray+t"QR (transparent)" t.txt -Gred -SkQR_transparent/0.75i -Y4.75i >> $ps
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...