Advertisement
howtophil

Radio Graphics Markdown Language (RGML)

Aug 2nd, 2020 (edited)
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. Radio Graphics Markdown Language (RGML)
  2. (Phillip J Rhoades - KE8GGD)
  3.  
  4. ----------------------------------
  5.  
  6. This is a simple set of narrow-band transmittable instructions that could be
  7. used to transfer a schematic, drawing, etc from one location to another.
  8.  
  9. It could be used over CW, voice, RTTY, MFSK32, etc...
  10.  
  11. The receiving end could use a computer program to decode the instructions
  12. or could hand-decode using graph paper, a hand-drawn grid, etc.
  13.  
  14. Lossless diagram transmission, fun little graphics, complex drawings built
  15. up from simple shapes, etc are all possible.
  16.  
  17. ----------------------------------
  18.  
  19. Functions
  20.  
  21. GR X,Y
  22. Header function
  23. Define grid space dimensions. Use lines as the unit of measurement. (Line graphics)
  24.  
  25. GRB X,Y
  26. Header function
  27. Define grid space dimensions. Use boxes as the unit of measurement. (Chunky graphics)
  28.  
  29. PL X,Y,X,Y,X,Y...
  30. Plot a line along an indefinite number of points.
  31. Or a single point with one PL X,Y
  32. Rhombuses, stars, and generally complex shapes.
  33.  
  34. SQ X1,Y1,X2,Y2
  35. Rectangles, squares, horizontal and vertical lines.
  36.  
  37. TR X1,Y1,X2,Y2,X3,Y3
  38. Draw a triangle as defined by three points.
  39.  
  40. CR X,Y,Radius
  41. Draw a circle of a given radius, centered at X,Y
  42.  
  43. TT X,Y,"Text to place",Vertical Anchor, Horizontal Anchor
  44. Place text at X,Y
  45. Anchor expressed as Top, Bottom, Middle (TBC) and Left, Right, Center (LRC)
  46. Anchors are optional. Defaults to top left corner as an anchor point.
  47. TT 1,20,"Hello world.",C,L
  48.  
  49. CL [Color name or hex code]
  50. Use this color (if available) for lines until instructed otherwise.
  51. CL with no color would return to default (black lines).
  52.  
  53. CF [Color name or hex code]
  54. Use this color for fills until instructed otherwise.
  55. CF with no color would return to no-fill (default)
  56.  
  57. F (modifier) can preface any graphics function.
  58. This is a call to draw a filled shape.
  59. FSQ X1,Y1,X2,Y2 is a filled rectangle.
  60. FTR [...] a filled triangle.
  61. FCR [...] a filled circle.
  62. Be sure to have a CF statement to define fill color first.
  63. F without a predefined fill color is considered an erasure. (overlaps with E modifier)
  64. Unused parts of a shape could be erased with no-color fills of other shapes.
  65.  
  66. E (modifier) can preface any graphics function.
  67. Erases lines, fills, etc in defined shape space.
  68. ESQ X1,Y1,X2,Y2 is used to erase a rectangle of area
  69. ETR [...] an eraser triangle.
  70. ECR [...] an eraser circle.
  71. This allows you to draw a shape, then remove parts that are not needed.
  72. Could get an arc out of a circle and an erase-circle/rectangle, triangle, etc
  73.  
  74. ----------------------------------
  75.  
  76. GR 10,10
  77. SQ 2,9,6,5
  78. PL 3,8
  79. PL 5,8
  80. PL 3,7,4,6,5,7
  81. SQ 3,5,5,3
  82. SQ 1,3,7,1
  83. PL 8,7,7,6,8,5
  84. TT 8,6,"HELLO",C,L
  85.  
  86. ----------------------------------
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement