Docs: update the "make a transparent image" example (#1316)

Alpha for colour is between 0-1, not 0-255.
This commit is contained in:
thegareth
2018-08-02 09:42:25 +01:00
committed by Lovell Fuller
parent 4589b15dea
commit 2de062a34a
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ sharp({
width: 300,
height: 200,
channels: 4,
background: { r: 255, g: 0, b: 0, alpha: 128 }
background: { r: 255, g: 0, b: 0, alpha: 0.5 }
}
})
.png()