Advertisement
chrisrouse

PVP 3 API - Blend Modes and Opacity (complete)

Jun 5th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. In order to set both the Blend Mode and opacity, you will need to include the curl for the
  2. mode and the curl for opacity. Both commands can be sent simultaneously.
  3.  
  4. Copy the blend mode you want to use from the list below, and add the following to your
  5. command.
  6.  
  7. ///////////////
  8. || ||
  9. || Opacity ||
  10. || ||
  11. ///////////////
  12.  
  13. curl -XPOST -d '{
  14. "value" : 1.0
  15. }' 'http://localhost:8080/api/0/opacity/layer/0'
  16.  
  17.  
  18. ////////////////////////////////////
  19. || ||
  20. || Blend Mode & Opacity Example ||
  21. || ||
  22. ////////////////////////////////////
  23.  
  24. curl -XPOST -H "Content-type: application/json" -d '{
  25. "value" : "Normal"
  26. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  27.  
  28. curl -XPOST -d '{
  29. "value" : 1.0
  30. }' 'http://localhost:8080/api/0/opacity/layer/0'
  31.  
  32.  
  33. ///////////////////
  34. || ||
  35. || Blend Modes ||
  36. || ||
  37. ///////////////////
  38.  
  39.  
  40. "Normal"
  41.  
  42. curl -XPOST -H "Content-type: application/json" -d '{
  43. "value" : "Normal"
  44. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  45.  
  46.  
  47. "Dissolve"
  48.  
  49. curl -XPOST -H "Content-type: application/json" -d '{
  50. "value" : "Dissolve"
  51. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  52.  
  53.  
  54. "Darken"
  55.  
  56. curl -XPOST -H "Content-type: application/json" -d '{
  57. "value" : "Darken"
  58. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  59.  
  60.  
  61. "Multiply"
  62.  
  63. curl -XPOST -H "Content-type: application/json" -d '{
  64. "value" : "Multiply"
  65. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  66.  
  67.  
  68. "Color Burn"
  69.  
  70. curl -XPOST -H "Content-type: application/json" -d '{
  71. "value" : "Color Burn"
  72. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  73.  
  74.  
  75. "Linear Burn"
  76.  
  77. curl -XPOST -H "Content-type: application/json" -d '{
  78. "value" : "Linear Burn"
  79. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  80.  
  81.  
  82. "Darker Color"
  83.  
  84. curl -XPOST -H "Content-type: application/json" -d '{
  85. "value" : "Darker Color"
  86. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  87.  
  88.  
  89. "Lighten"
  90.  
  91. curl -XPOST -H "Content-type: application/json" -d '{
  92. "value" : "Lighten"
  93. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  94.  
  95.  
  96. "Screen"
  97.  
  98. curl -XPOST -H "Content-type: application/json" -d '{
  99. "value" : "Screen"
  100. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  101.  
  102.  
  103. "Color Dodge"
  104.  
  105. curl -XPOST -H "Content-type: application/json" -d '{
  106. "value" : "Color Dodge"
  107. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  108.  
  109.  
  110. "Linear Dodge"
  111.  
  112. curl -XPOST -H "Content-type: application/json" -d '{
  113. "value" : "Linear Dodge"
  114. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  115.  
  116.  
  117. "Lighter Color"
  118.  
  119. curl -XPOST -H "Content-type: application/json" -d '{
  120. "value" : "Linear Burn"
  121. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  122.  
  123.  
  124. "Overlay"
  125.  
  126. curl -XPOST -H "Content-type: application/json" -d '{
  127. "value" : "Overlay"
  128. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  129.  
  130.  
  131. "Soft Light"
  132.  
  133. curl -XPOST -H "Content-type: application/json" -d '{
  134. "value" : "Dissolve"
  135. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  136.  
  137.  
  138. "Hard Light"
  139.  
  140. curl -XPOST -H "Content-type: application/json" -d '{
  141. "value" : "Hard Light"
  142. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  143.  
  144.  
  145. "Vivid Light"
  146.  
  147. curl -XPOST -H "Content-type: application/json" -d '{
  148. "value" : "Vivid Light"
  149. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  150.  
  151.  
  152. "Linear Light"
  153.  
  154. curl -XPOST -H "Content-type: application/json" -d '{
  155. "value" : "Linear Light"
  156. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  157.  
  158.  
  159. "Pin Light"
  160.  
  161. curl -XPOST -H "Content-type: application/json" -d '{
  162. "value" : "Pin Light"
  163. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  164.  
  165.  
  166. "Hard Mix"
  167.  
  168. curl -XPOST -H "Content-type: application/json" -d '{
  169. "value" : "Hard Mix"
  170. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  171.  
  172.  
  173. "Difference"
  174.  
  175. curl -XPOST -H "Content-type: application/json" -d '{
  176. "value" : "Difference"
  177. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  178.  
  179.  
  180. "Exclusion"
  181.  
  182. curl -XPOST -H "Content-type: application/json" -d '{
  183. "value" : "Exclusion"
  184. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  185.  
  186.  
  187. "Subtract"
  188.  
  189. curl -XPOST -H "Content-type: application/json" -d '{
  190. "value" : "Subtract"
  191. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  192.  
  193.  
  194. "Divide"
  195.  
  196. curl -XPOST -H "Content-type: application/json" -d '{
  197. "value" : "Divide"
  198. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  199.  
  200.  
  201. "Hue"
  202.  
  203. curl -XPOST -H "Content-type: application/json" -d '{
  204. "value" : "Hue"
  205. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  206.  
  207.  
  208. "Saturation"
  209.  
  210. curl -XPOST -H "Content-type: application/json" -d '{
  211. "value" : "Saturation"
  212. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  213.  
  214.  
  215. "Color"
  216.  
  217. curl -XPOST -H "Content-type: application/json" -d '{
  218. "value" : "Color"
  219. }' 'http://localhost:8080/api/0/blendMode/layer/0'
  220.  
  221.  
  222. "Luminosity"
  223.  
  224. curl -XPOST -H "Content-type: application/json" -d '{
  225. "value" : "Luminosity"
  226. }' 'http://localhost:8080/api/0/blendMode/layer/0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement