Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In order to set both the Blend Mode and opacity, you will need to include the curl for the
- mode and the curl for opacity. Both commands can be sent simultaneously.
- Copy the blend mode you want to use from the list below, and add the following to your
- command.
- ///////////////
- || ||
- || Opacity ||
- || ||
- ///////////////
- curl -XPOST -d '{
- "value" : 1.0
- }' 'http://localhost:8080/api/0/opacity/layer/0'
- ////////////////////////////////////
- || ||
- || Blend Mode & Opacity Example ||
- || ||
- ////////////////////////////////////
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Normal"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- curl -XPOST -d '{
- "value" : 1.0
- }' 'http://localhost:8080/api/0/opacity/layer/0'
- ///////////////////
- || ||
- || Blend Modes ||
- || ||
- ///////////////////
- "Normal"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Normal"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Dissolve"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Dissolve"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Darken"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Darken"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Multiply"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Multiply"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Color Burn"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Color Burn"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Linear Burn"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Linear Burn"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Darker Color"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Darker Color"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Lighten"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Lighten"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Screen"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Screen"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Color Dodge"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Color Dodge"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Linear Dodge"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Linear Dodge"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Lighter Color"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Linear Burn"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Overlay"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Overlay"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Soft Light"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Dissolve"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Hard Light"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Hard Light"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Vivid Light"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Vivid Light"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Linear Light"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Linear Light"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Pin Light"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Pin Light"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Hard Mix"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Hard Mix"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Difference"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Difference"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Exclusion"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Exclusion"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Subtract"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Subtract"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Divide"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Divide"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Hue"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Hue"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Saturation"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Saturation"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Color"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Color"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
- "Luminosity"
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "Luminosity"
- }' 'http://localhost:8080/api/0/blendMode/layer/0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement