package OSCADml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Scad.color specification type

A selection of hardcoded colours are available, along with aribtrary colours by way of with the RGB of float * float * float and Hex of string constructors.

  • As in OpenSCAD, RGB (r, g, b) values are given as floats in the range of 0. to 1., rather than the more traditional integers.
  • Hex v values can be given in four formats: "#rgb", "#rgba", "#rgba", and "#rrggbbaa". If alpha is given both in the hex value, and in the ?alpha parameter to Scad.color, the parameter will take precedence.
type t =
  1. | RGB of float * float * float
  2. | Hex of string
  3. | Lavender
  4. | Thistle
  5. | Plum
  6. | Violet
  7. | Orchid
  8. | Fuchsia
  9. | Magenta
  10. | MediumOrchid
  11. | MediumPurple
  12. | BlueViolet
  13. | DarkViolet
  14. | DarkOrchid
  15. | DarkMagenta
  16. | Purple
  17. | Indigo
  18. | DarkSlateBlue
  19. | SlateBlue
  20. | MediumSlateBlue
  21. | Pink
  22. | LightPink
  23. | HotPink
  24. | DeepPink
  25. | MediumVioletRed
  26. | PaleVioletRed
  27. | Aqua
  28. | Cyan
  29. | LightCyan
  30. | PaleTurquoise
  31. | Aquamarine
  32. | Turquoise
  33. | MediumTurquoise
  34. | DarkTurquoise
  35. | CadetBlue
  36. | SteelBlue
  37. | LightSteelBlue
  38. | PowderBlue
  39. | LightBlue
  40. | SkyBlue
  41. | LightSkyBlue
  42. | DeepSkyBlue
  43. | DodgerBlue
  44. | CornflowerBlue
  45. | RoyalBlue
  46. | Blue
  47. | MediumBlue
  48. | DarkBlue
  49. | Navy
  50. | MidnightBlue
  51. | IndianRed
  52. | LightCoral
  53. | Salmon
  54. | DarkSalmon
  55. | LightSalmon
  56. | Red
  57. | Crimson
  58. | FireBrick
  59. | DarkRed
  60. | GreenYellow
  61. | Chartreuse
  62. | LawnGreen
  63. | Lime
  64. | LimeGreen
  65. | PaleGreen
  66. | LightGreen
  67. | MediumSpringGreen
  68. | SpringGreen
  69. | MediumSeaGreen
  70. | SeaGreen
  71. | ForestGreen
  72. | Green
  73. | DarkGreen
  74. | YellowGreen
  75. | OliveDrab
  76. | Olive
  77. | DarkOliveGreen
  78. | MediumAquamarine
  79. | DarkSeaGreen
  80. | LightSeaGreen
  81. | DarkCyan
  82. | Teal
  83. | Coral
  84. | Tomato
  85. | OrangeRed
  86. | DarkOrange
  87. | Orange
  88. | Gold
  89. | Yellow
  90. | LightYellow
  91. | LemonChiffon
  92. | LightGoldenrodYellow
  93. | PapayaWhip
  94. | Moccasin
  95. | PeachPuff
  96. | PaleGoldenrod
  97. | Khaki
  98. | DarkKhaki
  99. | Cornsilk
  100. | BlanchedAlmond
  101. | Bisque
  102. | NavajoWhite
  103. | Wheat
  104. | BurlyWood
  105. | Tan
  106. | RosyBrown
  107. | SandyBrown
  108. | Goldenrod
  109. | DarkGoldenrod
  110. | Peru
  111. | Chocolate
  112. | SaddleBrown
  113. | Sienna
  114. | Brown
  115. | Maroon
  116. | White
  117. | Snow
  118. | Honeydew
  119. | MintCream
  120. | Azure
  121. | AliceBlue
  122. | GhostWhite
  123. | WhiteSmoke
  124. | Seashell
  125. | Beige
  126. | OldLace
  127. | FloralWhite
  128. | Ivory
  129. | AntiqueWhite
  130. | Linen
  131. | LavenderBlush
  132. | MistyRose
  133. | Gainsboro
  134. | LightGrey
  135. | Silver
  136. | DarkGray
  137. | Gray
  138. | DimGray
  139. | LightSlateGray
  140. | SlateGray
  141. | DarkSlateGray
  142. | Black
val to_string : t -> string