DrawLine

Syntax

Parameters

Example

window = Window:Create()

context = Context:Create(window)



while true do

if window:Closed() or window:KeyHit(Key.Escape) then return false end



context:SetColor(0,0,1)

context:Clear()



context:SetColor(1,1,1)

context:DrawLine(0,0,200,200)



context:Sync()

end