summaryrefslogtreecommitdiff
path: root/html/examples/cdpdf.lua
blob: 4f629777b79ad1bca8714a38923d4782b3b2d39a (plain)
1
2
3
4
5
6
7
8
9
require"cdlua"
require"cdluapdf"

canvas = cd.CreateCanvas(cd.PDF, "test.pdf")
canvas:Foreground (cd.RED)
canvas:Box (10, 55, 10, 55)
canvas:Foreground(cd.EncodeColor(255, 32, 140))
canvas:Line(0, 0, 300, 100)
canvas:Kill()