Plot

Syntax

Parameters

Example

--Create a window
local window = Window:Create()

--Create a rendering context
local context = Context:Create(window)

while true do
local context = Context:GetCurrent()
local window = context:GetWindow()

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

context:SetColor(0,0,1)
context:Clear()

context:SetColor(1,1,1)

--Draw some points on screen
context:Plot(1,1)
context:Plot(1,3)
context:Plot(1,5)

context:Plot(3,1)
context:Plot(3,3)
context:Plot(3,5)

context:Plot(5,1)
context:Plot(5,3)
context:Plot(5,5)

context:Sync()
end