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

bitimage.sh 899 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
  1. #!/usr/bin/env bash
  2. #
  3. ps=bitimage.ps
  4. # Raw, plus just change fore or background
  5. gmt psimage @vader1.png -P -Dx0/0+w2i -F+pfaint -K > $ps
  6. gmt psimage @vader1.png -Dx2.25i/0+w2i -F+pfaint -Gred+b -O -K >> $ps
  7. gmt psimage @vader1.png -Dx4.5i/0+w2i -F+pfaint -Gred+f -O -K >> $ps
  8. # Change both,then set transparent back or foreground
  9. # The middle will show all white in PS but white and transparent in PNG
  10. gmt psimage @vader1.png -Dx0i/2i+w2i -F+pfaint -Gred+f -Gyellow+b -O -K >> $ps
  11. gmt psimage @vader1.png -Dx2.25i/2i+w2i -F+pfaint -G+b -O -K >> $ps
  12. gmt psimage @vader1.png -Dx4.5i/2i+w2i -F+pfaint -G+f -O -K >> $ps
  13. # Finally, mix transparency and change of color
  14. gmt psimage @vader1.png -Dx0i/4i+w2i -F+pfaint -G+f -Gyellow+b -O -K >> $ps
  15. gmt psimage @vader1.png -Dx2.25i/4i+w2i -F+pfaint -G+b -Gred+f -O -K >> $ps
  16. gmt psimage @vader1.png -Dx4.5i/4i+w2i -F+pfaint -Gwhite+b -Gblack+f -O >> $ps
Tip!

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

Comments

Loading...