RosettaCodeData/Task/Bitmap-Bresenhams-line-algorithm/Pluto/bitmap-bresenhams-line-algorithm-2.pluto
2026-04-30 12:34:36 -04:00

6 lines
145 B
Text

require "bitmap"
local bmp = bitmap.of(400, 400, color.white, "mybmp")
bmp:line(0, 0, 399, 399, color.red)
bmp:view()
bmp:save() -- if required